3 ms·
What's your approach to Android support? Are you relying on mutation events, `beforeinput`, something else? I built a really solid android adapter (after spill
by netghost 4y ago
What's your approach to Android support? Are you relying on mutation events, `beforeinput`, something else?
I built a really solid android adapter (after spilling gallons of tears) for our Draft.JS fork, and might have a few tips if it's helpful.
- zurfyx 4y agoWe listen to a few typing related events and do some computation from here: keydown, input, beforeinput. Android, contrary to any other device, mostly relies on composition so Lexical makes sure to handle and flush these events accordingly. If you're curious, this is where it all starts - https://github.com/facebook/lexical/blob/main/packages/lexical/src/LexicalEvents.js https://github.com/facebook/lexical/blob/main/packages/lexic...