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
Stylus doesn't trigger PointerDownEvent #42846
Comments
/cc @dkwingsmt |
Is this issue still being processed, or was it forgotten? |
Sorry, I did forget this issue. Thanks for the reminder. I'll try to find a device to reproduce this issue. |
Is there any update on this issue? |
Just as a side note, this issue still seems to exist, and it has been 2 months since the last answer. I would like to know what the sate of this issue is... |
Hi @RimaitosLab |
I just tried the given example and at least on the Samsung tab S4 (SM T830), the behaviour hasn't changed. I haven't tested it on other devices yet. flutter doctor output:
Best Regards! |
I’m unable to reproduce the issue to pinpoint the cause. The issue needs further investigation. |
@iapicca I suspect this issue only exists on certain device. |
@RimaitosLab tagging @TahaTesser for visibility |
It took me almost 15min to be able to reproduce the issue again. Both issues still exist. This time while testing I enabled "Pointer location" in the developer options of android. This lead to the discovery that the whole system doesn't register any pointer events in the timespan. I still cannot reproduce this issue reliably. I just try it a few times (many few times) and wait till it occurs. If there is anything I could provide to help to solve this issue, please let me know. |
I also come across this problem, use hand first , everything works well then . If i use pen first, then app blocked; write a simple app to catch move event, will trigger this easier; |
bugreport-MRX-W29-HUAWEIMRX-W29-2021-01-15-20-18-51.zip |
I could reproduce the second issue. |
many users use android pad + stylus now. more any more people come across such problem |
The second issues is still exist on my test with Samsung Tab S6. I use the example code of Listener for test.
If I swap the sequence of operations, it works well
Well, give up the function like temporary eraser is easy, but when the users try to use the eraser like they did in Samsung Notes or other software but it doesn't work, they will get confused or even angry. So I hope this issue can be solve properly |
For me, this problem occurs as well. The previously mentioned bug, which caused the app to crash when touched with the stylus key pressed, has just been fixed. |
I just upgraded to master channel, the app no longer crashes when I press with the S-Pen with the side button pressed, however none of my tap functions work with gesture detectors etc. |
I'm too |
Although the issue with crashes has been fixed, the S Pen buttons still don't seem to work Seeing the variety of devices reporting this, it is probably a Samsung-wide issue. Tested on Samsung Galaxy Tab S6 Lite with the same result, dysfunctional S Pen buttons |
I can confirm that the stylus button is not working on Galaxy Tab S6 Lite. If more debug information is needed, let me know! |
Not working on Samsung S6 Lite under Lineage OS 20 as well. |
The same problem is on Samsung Galaxy Tab S8. |
I can confirm that the method posted by @Teagas still reproduces "the second problem" of this issue. I am using the latest Flutter stable with a Galaxy Tab S6 Lite and an S-Pen. Scenario which fails:
Steps 2 and 3 should have had pointer events received by the app. Scenario which succeeds:
Note, in the scenario that succeeds (and when the stylus is just hovering above the screen), the stylus button itself correctly appears in the Flutter doctor output
|
is there any update? I have same problem. Is there any update plan? |
I am having the same issue on an app that is built using flutter on my Galaxy tab s6 lite (Android 13). |
Any news on this? This is affecting Saber and Butterfly as well. |
samsung tab s8 plus: Thank you @Teases: for the tip to workaround the issue by pressing the button after holding the tip down on the screen. It's usable but not intuitive. You're awesome. |
The main problem
When you use a stylus as an input device, sometimes a PointerDownEvent gets triggered and then for the next 5-30sec the application doesn't handle any pointer inputs(it probably just freezes). Then I get a notice from the system that the app isn't responding and in that moment everything works as it should. The Problem then only reoccurs after you restart the Application.
Note: As long as I don't use the stylus everything works fine.
The main strange thing about this is that it only happens sometimes.
The second problem
When I press the button on my SPen and then touch the display, no pointer down events are triggered at all.
Steps to Reproduce
Target Platform: Android
Target OS version: 9
Devices: Samsung tab S4 (SM T830); Samsung Tab S3 (SM T820)
It seems like the problem occurs more frequently on the S4. But this could also be my imagination.
Logs
Log file: https://pastebin.com/9GFaVMUq
In line 1278 it says I didn't do anything for 20711 ms even though I instantly put the pen down again after I lifted it.
Flutter analyze doesn't return any issues (after you remove the curly brackets in the Strings which don't affect the problem)
Note: The doctor is wrong. I don't use VSCode and AndroidStudio is up to date with version 3.5.1
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: