ScrollTo tweak when selecting tasks
This commit is contained in:
@@ -312,8 +312,8 @@ $(function() {
|
||||
var shot_id = e.delegateTarget.dataset.shotId;
|
||||
shot_open(shot_id);
|
||||
|
||||
if ($(window).scrollTop() > 270) {
|
||||
$("html, body").animate({scrollTop: 0 }, '500', 'swing');
|
||||
if ($(window).scrollTop() > 100) {
|
||||
$("html, body").animate({scrollTop: 50 }, '500', 'swing');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -322,8 +322,8 @@ $(function() {
|
||||
var task_id = e.delegateTarget.dataset.taskId;
|
||||
task_open(task_id);
|
||||
|
||||
if ($(window).scrollTop() > 270) {
|
||||
$("html, body").animate({scrollTop: 0 }, '500', 'swing');
|
||||
if ($(window).scrollTop() > 100) {
|
||||
$("html, body").animate({scrollTop: 50 }, '500', 'swing');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user