You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the code may be inadvertently checking for the existence of a horizontal scroll bar to enable vertical scrolling, and a vertical scrollbar to enable horizontal scrolling. I was able to resolve the problem by swapping that.instance.wtScroll.wtScrollbarV.visible and that.instance.wtScroll.wtScrollbarH.visible in the code below:
if(deltaY){//ceil is needed because jquery-mousewheel reports fractional mousewheel deltas on touchpad scroll//see http://stackoverflow.com/questions/5527601/normalizing-mousewheel-speed-across-browsersif(that.instance.wtScroll.wtScrollbarV.visible){// if we see scrollbarthat.instance.scrollVertical(-Math.ceil(deltaY)).draw();}}elseif(deltaX){if(that.instance.wtScroll.wtScrollbarH.visible){// if we see scrollbarthat.instance.scrollHorizontal(Math.ceil(deltaX)).draw();}}
The text was updated successfully, but these errors were encountered:
In version 0.8.17, scrolling vertically via the mouse wheel does not work when the horizontal scrollbar is not visible. Example below:
http://jsfiddle.net/AKXtJ/
It looks like the code may be inadvertently checking for the existence of a horizontal scroll bar to enable vertical scrolling, and a vertical scrollbar to enable horizontal scrolling. I was able to resolve the problem by swapping that.instance.wtScroll.wtScrollbarV.visible and that.instance.wtScroll.wtScrollbarH.visible in the code below:
The text was updated successfully, but these errors were encountered: