prevent render idle while scrolling layers

This commit is contained in:
Stewart Allen 2020-06-14 19:27:05 -04:00
commit 0d320cd167
2 changed files with 3 additions and 4 deletions

View file

@ -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) {

View file

@ -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