fix scrolling
This commit is contained in:
parent
0040adb801
commit
335eac0f6b
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ txtjs.open = function(url) {
|
|||
.on({
|
||||
mousedown: function(e) {
|
||||
var offset = 'offsetY' in e ? e.offsetY : e.layerY;
|
||||
document.body.scrollTop = offset / factor + margin - 16;
|
||||
document.documentElement.scrollTop = offset / factor + margin - 16;
|
||||
}
|
||||
})
|
||||
.appendTo($scroll),
|
||||
|
|
Loading…
Reference in a new issue