mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-10 12:37:06 +08:00
Better autoscroll
This commit is contained in:
@@ -11,7 +11,7 @@ angular.module("sideBySide.controllers", [])
|
||||
scroll = () ->
|
||||
setTimeout () ->
|
||||
element = document.getElementById($location.hash())
|
||||
$document.scrollTo(element) if element
|
||||
$document.scrollTo(element, 10, 200) if element
|
||||
, 1
|
||||
|
||||
$rootScope.$on 'duScrollspy:becameActive', ($event, $element) ->
|
||||
|
||||
Reference in New Issue
Block a user