mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add core:page-up and core:page-down support to tree view
This commit is contained in:
@@ -18,6 +18,12 @@ $.fn.scrollRight = (newValue) ->
|
||||
else
|
||||
@scrollLeft() + @width()
|
||||
|
||||
$.fn.pageUp = ->
|
||||
@scrollTop(@scrollTop() - @height())
|
||||
|
||||
$.fn.pageDown = ->
|
||||
@scrollTop(@scrollTop() + @height())
|
||||
|
||||
$.fn.containsElement = (element) ->
|
||||
(element[0].compareDocumentPosition(this[0]) & 8) == 8
|
||||
|
||||
|
||||
Reference in New Issue
Block a user