-
Notifications
You must be signed in to change notification settings - Fork 58
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
Focus loop flicker occurs if return button is double-clicked on a rich-text #953
Comments
Have you been able to verify on device as well as the simulator? This seems like a high priority one, but I couldn't reproduce on iPhone XS, WPiOS with gutenberg-mobile 1.4 |
I also can't reproduce this in simulators in |
hey @hypest I checked with gutenberg 1.3.0 and I can repro this there too, so it doesn't look like it is related to that PR. |
Another thing I noticed, I can't repro the issue on Internal-Release configuration, it happens only on Debug. So it might have sth to do with the speed of the bridge communication. This lowers urgency of the issue. But still, it'd be good to know the root cause 🤔 |
I fail to reproduce this in release builds too, so I'm moving this to |
This bug can be 100% triggered by quickly tapping between two blocks repeatedly. Tested on iPhone 6s with iOS 13, on the App Store version of WordPress iOS. I guess in the |
I've found this to be much easier to recreate this on a debug build, but with a lot of very fast tapping, I also can see the issue in a release build. WP Internal 13.3.0.20190926 |
This was reported internally and I am copying relevant steps and notes here for reference:
(internal reference: p4a5px-2yi-p2 h/t @andrealeebishop) |
I tried on an iPad with a debug build and I wasn't able to reproduce it. Do we have a way to detect this loop? At least for debugging and getting an idea of how many users this is affecting. |
I observed a similar focus loop issue while testing #2254 which reported a lag when selecting multiple images to add to the Cover block with the Free Photo Library upload option. I was able to reliably replicate the focus loop problem using WPiOS 14.8.0.1 TestFlight beta by doing the steps in the 2254 issue and then tapping on the "Add title" field. (4m5s) Tested with WPiOS 14.8.0.1 TestFlight beta on iPhone 11 iOS 13.4.1. |
Thank you for reporting that @designsimply @dratwas Let's discuss what we can do about this focus loop quickly as a hotfix. I know we were planning to do a refactor, but we need to upgrade react native for that and it wouldn't be quick. I think we can consider limiting the selection to only 1 image on Cover block, wdyt? |
Hey @pinarol I totally agree that we can limit the selection in cover block to single image/video. I'm working on it ATM :) |
Thanks. It turns out allowing multiple uploads on Cover was not an intended behavior anyway. |
I created a PR with the fix for that wordpress-mobile/WordPress-iOS#14108 Thanks to that the cover block is in a single selection mode. |
I saw a focus loop happen again while I was testing cover blocks in 15.5 beta testing. I caught the last part of it on video and wanted to mention it and to note I tried to replicate and couldn't reliably replicate the problem this time. (52s) |
Another focus loop was reported by a user in 3312531-zen running iPad Pro latest gen 12.9” WPiOS 15.6. Examining the video they provided, it looks like it happened after tapping back and forth between a couple paragraph blocks and then tapping the three-dot menu at top right. (internal reference: p9ugOq-1gR-p2#comment-2566) |
Hi everyone. It sounds like this user is having a similar issue on this app review today. Device Galaxy Note10+ 5G (d2xq) |
👋 I added "flicker" to the title because whenever I go to search for this issue I keep not finding it and forget the phrase "focus loop". Hopefully it will help others find this report more easily if they find additional cases to note. |
I am able to recreate a focus loop/flicker in WordPress iOS 16.7 by quickly tapping between two paragraphs. Arrived here from related #3085. Device: iPhone 11 Pro rich-text-focus-loop.MP4 |
Steps to reproduce:
Focus on a rich text block like paragraph
Focus on it
Double tap return button
A focus loop occurs as seen here:
Tested on branch
develop
, commit82228c565361915daaaf4a3dbec22cda721159f3
The text was updated successfully, but these errors were encountered: