Open zoranagee opened 9 years ago
@chadrolfs I've verified the fix, but can you help double check?
This issue appears to be back. Repro's intermittently on big moves. Easier to repro on small drags of AB
Yes, it seems to repro on move but not pan.
Welp, at this point we've got scroll
events battling with autoCanvasShift
events. Each of the former results in an attempt to re-enable the overlays, whereas the latter starts with an attempt to disable the overlays. Currently stumped on this one.
Giving up on this for now :person_frowning: If anyone else wants to take a crack, here's an almost comical branch which includes about 5 separate, failed attempts at hacking around the problem: https://github.com/adobe-photoshop/spaces-design/compare/iwehrman/issue-2714-again
Note that there are at least some obvious bugs fixed in that branch. For example, the debounced autoCanvasShift
event handler is currently completely broken, in that for each event it creates a completely new debounced function and then calls it. Debouncing relies on successive calls of the same function, so this is no different from just calling the function after some delay.
Other problems:
autoCanvasShift
events throughout the drag, and we aren't exactly sure when to process them. Also, processing them by calling resetBounds
automatically re-enables the overlays!FBNC to @chadrolfs
CNR on Mac but still looks pretty buggy on Win
I see problems on OSX as well.
I can't repro on Mac, at least. Can somebody help me repro? I really, really want to kill this bug, and I thought my last PR would have completely eliminated any possibility of this still happening.
Over to @chadrolfs to help me come up with repro steps.
Like I said above, CNR on Mac but maybe @jsbache can help you repro there. Otherwise try Windows.
Panning quickly to the left: