Merge pull request #1760 from adamjimenez/patch-21
shift+mousewheel to horiz scroll
This commit is contained in:
commit
ac99690429
1 changed files with 8 additions and 1 deletions
|
|
@ -235,8 +235,15 @@ function DefaultHandlers(mouseHandler) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onMouseWheel = function(ev) {
|
this.onMouseWheel = function(ev) {
|
||||||
if (ev.getShiftKey() || ev.getAccelKey())
|
if (ev.getAccelKey())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
//shift wheel to horiz scroll
|
||||||
|
if (ev.getShiftKey() && ev.wheelY && !ev.wheelX) {
|
||||||
|
ev.wheelX = ev.wheelY;
|
||||||
|
ev.wheelY = 0;
|
||||||
|
}
|
||||||
|
|
||||||
var t = ev.domEvent.timeStamp;
|
var t = ev.domEvent.timeStamp;
|
||||||
var dt = t - (this.$lastScrollTime||0);
|
var dt = t - (this.$lastScrollTime||0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue