mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
Create ScrollView super class
Binds support for page up, page down, move to top, and move to bottom in the initialize method.
This commit is contained in:
8
src/app/scroll-view.coffee
Normal file
8
src/app/scroll-view.coffee
Normal file
@@ -0,0 +1,8 @@
|
||||
{View} = require 'space-pen'
|
||||
module.exports =
|
||||
class ScrollView extends View
|
||||
initialize: ->
|
||||
@on 'core:page-up', => @pageUp()
|
||||
@on 'core:page-down', => @pageDown()
|
||||
@on 'core:move-to-top', => @scrollToTop()
|
||||
@on 'core:move-to-bottom', => @scrollToBottom()
|
||||
Reference in New Issue
Block a user