mirror of
https://github.com/atom/atom.git
synced 2026-01-29 08:48:17 -05:00
Binds support for page up, page down, move to top, and move to bottom in the initialize method.
9 lines
269 B
CoffeeScript
9 lines
269 B
CoffeeScript
{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()
|