Reverse wheel scroll axis on shift pressed

Resolve #548.
This commit is contained in:
Hyunje Jun 2016-10-18 11:55:03 +09:00
parent 0fc5c69b3f
commit 11fcd09a99

View File

@ -52,6 +52,10 @@ function bindMouseWheelHandler(element, i) {
deltaY = e.wheelDelta;
}
if (e.shiftKey) {
// reverse axis with shift key
return [-deltaY, -deltaX];
}
return [deltaX, deltaY];
}