-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selecting a different tab while moving the cursor (dragging) may move it to new window #2444
Comments
This is a debug log tested with an unbranded Firefox 71.0.0 on macOS Mojave 10.14.6 using the development Tree Style Tab 3.2.6.9832 (tested on unloaded tabs):
|
These log mean that the window was positioned at top-left edge of the screen and you released the mouse button at the top-left edge of the screen. Otherwise did you activate the option |
For the test I used a new profile, only setting |
I see that on commit 4b591bc you introduced a workaround which is still present on 3.2.6: treestyletab/webextensions/sidebar/drag-and-drop.js Lines 1184 to 1188 in 3505cd3
Building a version with a less tight timing window than the current 100 ms seems do do the trick for me; I have tested setting it to 2000. I don't know what a reasonable value might be: given the last log, 300 ms wouldn't be enough, and I have just experienced a delay of around 700 ms (from the log window: 19:06:05.527 “onDragStart”, 19:06:06.257 “workaround for bug 1548949”). |
Oops, sorry I totally misunderstood the context. Now I've realized that the original issue was produced with a poor performance of old TST and it looked fixed with a performance improvement, but it has looked to be reappeared from same reason. |
Anyway this problem is fundamentally caused by the bug 1561879 - Sometimes drag operation started in a sidebar contents provided by an addon is immediately canceled on macOS. I've introduced a change to make the delay configurable with the commit ccda491. It may help you to use TST without custom build. |
That is a really welcome option. Thank you! Adjusting the delay through the new TST option works for me in the testing I have done using an automated build. I imagine that it will prove to be equally effective once the stable build gets pushed out and I try it on my main profile. Given that the root issue depends on a Firefox fix and that there's this workaround, I will now close this issue. |
Just for the record, I'm experiencing this on a Windows system so it seems it's not macOS specific. |
Short description
When selecting a different tab by clicking on it using the Tree Style Tab (TST) sidebar, if the cursor has any motion the newly-selected tab (and its siblings) might end up in a new window.
Reference tab structure:
Steps to reproduce
Expected result
Since the cursor movement has been within the tab, the newly selected tab B should remain within its position.
Actual result
The newly selected tab B has a chance to be dragged to an entirely new window (along with any tabs hanging from it).
Environment
Observations
This is basically issue #2078 tested on an up to date version of Firefox and TST.
The text was updated successfully, but these errors were encountered: