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
{{ message }}
Repository navigation
bug: Mousewheel scrolling broken on Firefox and Chrome on devices with touch support #4208
changed the title [-]bug: Mousewheel scrolling broken on Firefox and Chrome[/-][+]bug: Mousewheel scrolling broken on Firefox and Chrome on devices with touch support[/+]on Aug 19, 2015
This seems to only happen on devices with touch support. Tried it on my desktop and couldn't repro it. And then tested on 3 different windows tablets/hybrids (including 1 fresh windows 10 install to isolate software conflicts) and all of them exhibit the issue.
Well good thing we're not supporting Windows at the moment 😁
Currently windows has known issues, but we're waiting a bit on window. Market share is really there ATM and with windows 10 coming out, we're waiting to see how that works.
I don't think this issue is limited to Windows though. As a quick test, I connected a mouse to my Android phone and tried to mousewheel scroll in Ionic View's Terms of Service page. Same problem there.
So it looks like mousewheel scrolling might be broken on any Windows or Android device with touch support. Granted, using a mouse with Android is a fairly rare use case, so I'd understand if you guys would rather label this as a Windows issue anyways. =)
@schoettler I had some luck setting overflow-scroll="true" for getting the mousewheel to work in firefox. This will break touch scroll for iOS though so you'll have to set this based on the platform/device being used. You can also set this application wide using $ionicConfigProvider.scrolling.jsScrolling(false). Hope this helps.
I have created a decorator to change the wheelDampen to a lower value if the browser is Firefox. It's not a beautiful solution, but it works.
$controllerDecorator.$inject = ['$delegate'];
function $controllerDecorator ($delegate) {
return function (constructor, locals) {
if ('$ionicScroll' === constructor && isFirefox) {
locals.scrollViewOptions.wheelDampen = 0.08;
}
return $delegate.apply(null, arguments);
}
}
My goal was to hook into the mouseWheel event in the ctrl.scrollView object but without success. This way there is no need for browser lookup and the event object can be used to determine if scroll velocity needs to be increased.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
mhartington commentedon Aug 10, 2015
Not seeing this at all. Scrolling is working fine in chrome and firefox for me.
[-]bug: Mousewheel scrolling broken on Firefox and Chrome[/-][+]bug: Mousewheel scrolling broken on Firefox and Chrome on devices with touch support[/+]lewisl9029 commentedon Aug 19, 2015
Here's a quick update:
This seems to only happen on devices with touch support. Tried it on my desktop and couldn't repro it. And then tested on 3 different windows tablets/hybrids (including 1 fresh windows 10 install to isolate software conflicts) and all of them exhibit the issue.
mhartington commentedon Aug 20, 2015
Well good thing we're not supporting Windows at the moment 😁
Currently windows has known issues, but we're waiting a bit on window. Market share is really there ATM and with windows 10 coming out, we're waiting to see how that works.
lewisl9029 commentedon Aug 20, 2015
Thanks for the quick follow up.
I don't think this issue is limited to Windows though. As a quick test, I connected a mouse to my Android phone and tried to mousewheel scroll in Ionic View's Terms of Service page. Same problem there.
So it looks like mousewheel scrolling might be broken on any Windows or Android device with touch support. Granted, using a mouse with Android is a fairly rare use case, so I'd understand if you guys would rather label this as a Windows issue anyways. =)
schoettler commentedon Nov 18, 2015
+1
OSX's Firefox scrolling is really slow, @mhartington have you tried recently?
OSX: 10.11
Firefox: 42.0
Scroll here:
http://codepen.io/ionic/pen/JsHjf
jonathanchris commentedon Feb 12, 2016
@schoettler I had some luck setting
overflow-scroll="true"for getting the mousewheel to work in firefox. This will break touch scroll for iOS though so you'll have to set this based on the platform/device being used. You can also set this application wide using$ionicConfigProvider.scrolling.jsScrolling(false). Hope this helps.ChristiaanScheermeijer commentedon Dec 16, 2016
I have created a decorator to change the
wheelDampento a lower value if the browser is Firefox. It's not a beautiful solution, but it works.My goal was to hook into the
mouseWheelevent in thectrl.scrollViewobject but without success. This way there is no need for browser lookup and the event object can be used to determine if scroll velocity needs to be increased.qqilihq commentedon Jan 22, 2017
@ChristiaanScheermeijer I would like to try your solution but I do not fully understand what is decorated from your example? Could you clarify?
Also: Is there an ionic-built-in function for checking whether the browser
isFirefox?ChristiaanScheermeijer commentedon Jan 22, 2017
@qqilihq the
$ionicScrollcontroller is being altered by using a$controllerdecorater.Unfortunately Ionic has no Firefox detection (that I'm aware of).
qqilihq commentedon Jan 22, 2017
Thank you for your feedback! Got it :)
ionitron-bot commentedon Sep 4, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.