RichEditorView icon indicating copy to clipboard operation
RichEditorView copied to clipboard

What case does needsWorkAround solve?

Open hontd opened this issue 7 years ago • 2 comments

I'm having a scrolling problem relates to needsWorkAround in RE.getRelativeCaretYPosition. I'm wondering why we need that case because it seems still work ok for me if I take that out. Does anyone here know in which case we need to use that? Thanks.

hontd avatar Aug 25 '17 05:08 hontd

+1

nikita-leonov avatar Sep 07 '17 05:09 nikita-leonov

The code inside needsWorkAround needed in the case when the user creates an empty new line. The other part is used when the user pastes a few lines of texts, for example.

I believe needsWorkAround should be renamed to "startsEmptyLine" or something more meaningful.

the-old-one avatar Jul 02 '18 23:07 the-old-one