emiboy Posted August 2, 2016 Share Posted August 2, 2016 Add this code to CustomMeta property in ServerModule. ( found in http://stackoverflow.com/questions/28882691/solved-using-mouse-wheel-to-scroll-in-sencha-touch-application-on-desktop) var mouseWheelHandler = function (e) { var e = window.event || e, el = e.target, cmp, offset, scroller, delta, _results = []; e.preventDefault(); // prevent scrolling when in iframe while (el !== document.body) { if (el && el.className && el.className.indexOf('x-container') >= 0) { cmp = Ext.getCmp(el.id); if (cmp && typeof cmp.getScrollable == 'function' && cmp.getScrollable()) { scroller = cmp.getScrollable().getScroller(); if (scroller) { delta = e.detail ? e.detail*(-120) : e.wheelDelta; offset = { x:0, y: -delta*0.5 }; scroller.fireEvent('scrollstart', scroller, scroller.position.x, scroller.position.y, e); scroller.scrollBy(offset.x, offset.y); scroller.snapToBoundary(); scroller.fireEvent('scrollend', scroller, scroller.position.x, scroller.position.y-offset.y); break; } } } _results.push(el = el.parentNode); } return _results;};if (document.addEventListener) { // IE9, Chrome, Safari, Opera document.addEventListener('mousewheel', mouseWheelHandler, false); // Firefox document.addEventListener('DOMMouseScroll', mouseWheelHandler, false);}else { // IE 6/7/8 document.attachEvent('onmousewheel', mouseWheelHandler);} Link to comment Share on other sites More sharing options...
AdilsonReis Posted August 7, 2018 Share Posted August 7, 2018 Hello How do I enable it? but it does not work Link to comment Share on other sites More sharing options...
Sherzod Posted August 7, 2018 Share Posted August 7, 2018 Hello, Which edition are you using? Link to comment Share on other sites More sharing options...
SISBLU Software Posted August 16, 2019 Share Posted August 16, 2019 1.90.0.1504 Link to comment Share on other sites More sharing options...
Recommended Posts