-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Modal] Touch Scrolling (dropdown, content, focussed input) fixed #273
[Modal] Touch Scrolling (dropdown, content, focussed input) fixed #273
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @hammy2899, I just tried verifying this with latest FUI and unfortunately the issue is still there. To reproduce using Chrome you can follow these steps:
The above has been broken since SUI 2.3+. SUI 2.2.14 works well. |
@keshmir This PR is part of the upcoming 2.7.0 release. The fomantic website still runs 2.6.4. |
Oh thanks @lubber-de for pointing this out. I am a newbie! :) Sorry if this is an obvious question but is there a way for me to get a build with this PR included in order to verify my software? Any pointer appreciated. |
@keshmir I updated the fiddle with the latest module version containing this PR. |
You can also include this in your site (include after semantic.js from FUI and not the old SUI files) |
@keshmir as @lubber-de pointed out you could use jsDelivr or you could clone the repo and checkout the Remember that the |
Thanks guys for the tips. @lubber-de I have verified your fiddle page on an iPad Pro using both Safari and Chrome and it works as expected. |
@keshmir If you want to see if features are released or are coming in the next release you can check what milestone the issue/PR is in. We try to label and milestone everything accordingly 😉 |
Hello, It seems to be still a problem on touchmove event, as I reported here some months ago. |
@smartm0use What device are you testing this on? I just tried this on my Pixel and it works fine. |
@smartm0use Chrome indeed seems to have some issues when simulating the touch pointer. But using the mousewheel once (!) activated the touchmove pointer simulation afterwards for me. |
I see and I agree. Anyway this happens to me:
So, what could be wrong with your jsfiddles that scrolling with emulated touch of browser (both Chrome and Firefox) it doesn't work? |
I guess it's the extra html which the jsfiddle is rendering on top of our jsfiddle code.(at least the top sticky 'results' menu |
I'm asking because I have the same problem with the app I'm developing and I can't figure out why it doesn't work on browser emulation and I'm struggling with building and deploying it to try every time on a real device... |
Description
This PR fixes lots of issues if touchscroll is not working in modals on mobile devices anymore.
All components within modals which are supposed to be scrollable (for example dropdowns) by touchmove were not working because the touch events were cancelled. This behaviour was invented because of background scrolling issues when a modal was opened. I now simply check if the touch event occurs within the modal (were it is wanted) and only cancel the event, when it is outside.
This PR also fixes lost background scrolling if a modal with focussed input was closed having an open mobile keyboard.
Testcase
To test this, i have prepared a little mobile test suite. Just follow the short mentioned steps there
Open the following links in a real mobile browser to reproduce the issues and fixes
Fixed Version
http://jsfiddle.net/q3ptLkz6/13/show
Unfixed Version
http://jsfiddle.net/q3ptLkz6/12/show
Closes
Semantic-Org/Semantic-UI#6633
Semantic-Org/Semantic-UI#6675
Semantic-Org/Semantic-UI#6611
Semantic-Org/Semantic-UI#6449 (was already partly fixed in FUI)
Semantic-Org/Semantic-UI#6509 (duplicate of 6449)
Semantic-Org/Semantic-UI#6477 (duplicate of 6449)
Semantic-Org/Semantic-UI#6656 (was already working in FUI, but the change fixes it in SUI aswell)
Probably also fixes
Semantic-Org/Semantic-UI#6686 (testcase is missing)
Semantic-Org/Semantic-UI#4089