Open shirakaba opened 6 years ago
A very good case of how tricky it could be to replicate native UX. Instead, it's appealing to rewrite this with the native component, which is not easy too. I have a little time this weekend, trying to fix as many bugs as I can. Will play with this too.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Aim
Basically I want the cursor to imitate the accessible behaviour you'd expect from
NSSplitViewController
: the cursor style should reflect whether it's hovering over the divider or not.Steps to Reproduce
Run the code from the Reproducible Demo section.
Expected Behaviour
resizeLeftRight
style.resizeLeftRight
style.resizeLeftRight
style provided that it's still overlapping the divider bar.arrow
style.Actual Behavior
arrow
style. Even if an adaptation is added to restoreresizeLeftRight
style upon any call of thewhilstDragging
function, the cursor will repeatedly fight to return toarrow
style. I think this is related to the divider changing position (possibly re-rendering in the process, and affecting the responder behaviour), but I'm not sure.See video on Twitter.
Reproducible Demo
Use the code snippet from this Snack with
react-native-macos
.Note: commit
7c8be91
from July 3rd 2018 tomaster
must first be applied to fix theCursor
module import issue.