-
Notifications
You must be signed in to change notification settings - Fork 12
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
Safari breaking change to touch actions/scrolling #770
Comments
preventDefault on ALL events does not stop the dragging issues. |
One related bug, mentions other threads: https://bugs.webkit.org/show_bug.cgi?id=184250 Investigating. |
atlassian/react-beautiful-dnd#413 (comment) was the key comment to understand what Safari is doing. They have the fun combination of moving to passive events by default AND not supporting touch-action: none. Chrome moved to passive actions, but it doesn't cause a problem for us because it respects the CSS. I'll have patches here soon. |
@ariel-phet and @phet-steele, these commits will need cross-platform testing to make sure I didn't break things. In particular, check desktop Safari (with touch if possible?), mobile safari (iPad and iPhone), Android (would be good to know if I broke something), IE11 (since it doesn't support a certain newer way of specifying things). @ariel-phet, this may be a candidate for maintenance release, depending on its impact. Can we update an iPad to 11.3 (if we haven't) to see if this is an issue with our current sims? |
I'm also going to look if we can leave the "default" behavior on Chrome so that we can just have the preventDefault calls no-op, since it will have technically higher performance. |
Looks like the main Safari feature request for the "change" is https://bugs.webkit.org/show_bug.cgi?id=175346 Also notably:
|
Updated the title to better reflect the scope. |
…efault, AND I don't want to have a two-common-repo maintenance release). See phetsims/scenery#770
Initial "fixed" test deployment: https://bayes.colorado.edu/dev/html/capacitor-lab-basics/1.7.0-dev.4/phet/capacitor-lab-basics_en_phet.html |
Looking good here!
…Sent from my iPhone
On Apr 18, 2018, at 9:38 PM, Jonathan Olson <[email protected]<mailto:[email protected]>> wrote:
Initial "fixed" test deployment: https://bayes.colorado.edu/dev/html/capacitor-lab-basics/1.7.0-dev.4/phet/capacitor-lab-basics_en_phet.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#770 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AE3FZC-STsNkEXg3IyVVODYxqYRE79JQks5tqBSygaJpZM4TbCd->.
|
Hmm, it looks like with the workaround to prevent the passive events, on my iPhone it's possible to get this layout on reload (only while starting on landscape): Swapping portrait/landscape fixes it (and makes the top navigation bar interestingly go away completely), and it doesn't seem to be happening on the first load. I'm getting a URL ready for testing with this. Different scenery versions are going to have somewhat different patches anyways, so I'm curious whether it happens (additionally) in the above CLB link (I'll test). |
FYI - in iOS, the top nav bar has been going away upon rotate for quite a while, so it has been possible to go "full screen" in a way. However, some controls are close to the top edge and then cause the nav bar to come back. If that happens, I just rotate back and forth to get back to full screen. |
Maintenance-patched version of acid-base-solutions: https://bayes.colorado.edu/dev/html/acid-base-solutions/1.2.12-rc.3/acid-base-solutions_en.html
If that's a problem on an iPad, I'm not sure users would know (or want) to do that as a workaround. I feel investigating a fix for this behavior might be helpful in general. Thoughts? |
In addition to the acid-base-solutions patch above, I'll be patching:
with Scenery versions sorted by date:
(total of 41 Scenery SHAs that will be patched). |
@kathy-phet noticed that if you view a sim with iOS 11.3+, the dragging behavior is pretty broken. It tries to scroll, even though we've specified the proper CSS to prevent this (touch-action).
I'm looking for workarounds, but other people have noticed this regression also (https://stackoverflow.com/questions/49047414/disable-scroll-swipe-action-for-html-canvas-drawing-on-ios).
The text was updated successfully, but these errors were encountered: