prevent render idle while scrolling layers
This commit is contained in:
parent
5b4f7d93aa
commit
0d320cd167
2 changed files with 3 additions and 4 deletions
|
|
@ -1503,6 +1503,7 @@
|
|||
API.var.layer_hi = Math.round((1 - start) * API.var.layer_max);
|
||||
API.var.layer_lo = Math.round((1 - end) * API.var.layer_max);
|
||||
API.show.layer();
|
||||
SPACE.mouse.active();
|
||||
}
|
||||
|
||||
function dragit(el, delta) {
|
||||
|
|
|
|||
|
|
@ -663,7 +663,8 @@
|
|||
downSelect: function(f) { mouseDownSelect = f },
|
||||
upSelect: function(f) { mouseUpSelect = f },
|
||||
onDrag: function(f) { mouseDrag = f },
|
||||
onHover: function(f) { mouseHover = f }
|
||||
onHover: function(f) { mouseHover = f },
|
||||
active: updateLastAction
|
||||
},
|
||||
|
||||
useDefaultKeys: function(b) {
|
||||
|
|
@ -772,9 +773,6 @@
|
|||
'mousedown', onMouseDown,
|
||||
'mouseup', onMouseUp,
|
||||
'keypress', keyHandler,
|
||||
// dup with touch but need to observe here
|
||||
// 'DOMMouseScroll', updateLastAction,
|
||||
// 'mousewheel', updateLastAction,
|
||||
'touchstart', updateLastAction,
|
||||
'touchmove', updateLastAction,
|
||||
'touchend', updateLastAction
|
||||
|
|
|
|||
Loading…
Reference in a new issue