scribble icon indicating copy to clipboard operation
scribble copied to clipboard

iOS Scribble (handwriting text input feature) conflicts with stylus stroke recognition

Open mattrussell-sonocent opened this issue 3 years ago • 5 comments
trafficstars

Thanks for the ace library!

When using an Apple Pencil on iOS with Scribble input enabled, there's a delay of maybe 1 second before the library begins to recognise the stylus stroke. Before then, a temporary grey stroke is shown, which I suspect is the OS attempting handwriting recognition briefly. If I disable Settings -> Apple Pencil -> Scribble, then the library recognises the stroke immediately.

iOS: 15.4.1 scribble: 0.4.0 Flutter: 2.10.5

https://user-images.githubusercontent.com/45822724/169027476-cf7920e1-04f0-41b0-9fab-3fddcf8a0136.MP4

mattrussell-sonocent avatar May 18 '22 11:05 mattrussell-sonocent

I am also experiencing this issue. Thanks so much for the insight on disabling scribble, cuz I didn't know where the problem came from at all.

wxxedu avatar May 21 '22 00:05 wxxedu

@mattrussell-sonocent thanks for the insight! Is this still a problem now that iOS scribble (confusing naming) is officially supported by flutter?

timcreatedit avatar Sep 30 '22 05:09 timcreatedit

Hi! This is still a problem (I ended up not using the Scribble package and used a custom Listener widget in my app, and despite being officially supported by flutter, my app still experiences this issue with Scribble enabled in iOS's settings. Since this package also uses the Listener widget, I think that it will also be a issue for this case. I will look into whether if there are some ways to disable Scribble locally for the app. If I happen to find one, I will share it here:-)

wxxedu avatar Oct 02 '22 13:10 wxxedu

I'm still getting this with Flutter 3.7.0 and Scribble 0.9.1. @wxxedu Did you have any luck finding a workaround to disable the Apple Pencil Scribble feature for the app or a Scribble instance?

madebyframe avatar Feb 13 '23 15:02 madebyframe

I managed to solve this by adding into the Info.plist the following code:

<key>UIPencilInteractionEnabled</key>
<false/>

PaulPopTudor avatar Mar 02 '23 21:03 PaulPopTudor