-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
showOverflow set to true messes up with Dojo events (map click) on mobile devices #2260
Comments
Try to isolated the reproduction much more with the very basics. No map or external libraries if possible. If you are not sure if materialize has anything to do with it, just remove it and try to reproduce the issue without it. In any case, it seems to be more an issue of iscroll.js than fullpage.js. scrollOverflowOptions = {
click: true
} |
Actually a collegue set it to false (just tried "true" but wont work at all) like half and hour ago and it helped to some extent, now it works on mobile but not on nexus7. Update following soon |
It is a well known bug of iScroll.js. It was previously discussed in this issue: #2035 The solution fullpage.js adopted was to turn it to var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
iscrollOptions.click = isTouch; // see #2035 Can you please check if |
isTouch doesnt seem to be defined |
No and it shouldn't . It is not a public global variable. What I'm suggesting if you creating the variable outside fullpage.js and checking its value. But again, in the touch device itself. var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints)); |
ah sorry yes it is true p.s. im posting screenshot of a remote debug from nexus5, it is a mobile |
Are you talking about the variable ? Is it true? |
Yes sir, isTouch is true https://jsfiddle.net/b2Lb16b8/5/ and i've mustered up this and it kinda works on my mobile now (at least the map clicks) but the dropdown still wont accept the selected value |
Regarding materialize issue, try to create a more simple example with empty sections to see what's going on. I'll close the issue as it seems you have solved the main problem. |
Sadly it doesnt work on tablet. I'll keep on hacking at it and update you when ive found the sollution. Thanks for the swift responses. But please dont close it yet. Till i've tested on all devices thoroughly. best regards, |
I though you said:
Just keep checking the |
My mobile: and isTouch is true on both update: mobile phones and tablets act the same, i just noticed the clicks dont work in landscape on either. Hmm this is becoming really weird |
You'll have to isolate each of your problems as I said.
Until not isolated I can not help I'm afraid. |
Will do, thank you for your time for now. Appreciated |
Hello, I'm the colleague of the guy who raised this issue. We have prepared some examples: Example 1: http://demo.gisdata.si/fullPage/example.html Example 2: http://demo.gisdata.si/fullPage/example1.html Example 3: http://demo.gisdata.si/fullPage/example2.html Example 4: http://demo.gisdata.si/fullPage/example3.html Example 5: http://demo.gisdata.si/fullPage/example4.html So my question is as it follows. Why does it work with click set to false when your proposed solution was to have it on true for touch devices. Do you have any ideas? Also a follow-up question. Should any issues with scrolling be reported to the iScroll GitHub page or do you have any information on it? The problem is now that on the Android tablet I'm using to test the website the scrolling is not very good. It moves a small distance on every swipe up/down and sometimes it jumps for three times the amount. Works perfectly on my Android phone. On an iPad, it's also a little jumpy on the section containing the map in it, but the other slide works just fine. Love your plugin, I would really like to make the website work with it Thank you for your help. |
I would suggest so. In any case, I personally wouldn't use scrollOverflow. |
We're using materialize.css and fullPage.js alongside dojo (the js api) and ofcourse jQuery. Clicking on the map doesnt work, and dropdown selection doesnt work or both stop working upon returning from slide with inputs. When showOverflow is set to false everything works.
Link of example:
https://jsfiddle.net/b2Lb16b8/1/
Steps to reproduce it
I am uncertain if this is something to do with "responsivenes" of the bootstrap/materialize.css
Versions
Various browsers(chrome in mobile dev mode - desktop, chrome android, opera mini android, dolphine android) , various devices(nexus5 phone, nexus7 tablet) , (works on certain sizes, but wont on most)The text was updated successfully, but these errors were encountered: