Description of the Issue
Whenever you have multiple documents open and want to re-order the tabs by dragging a small one ("tiny.c") next to a bigger one ("humongous.txt") the tabs row is flickering super fast and makes it random to 50% chances of obtaining the desired result.
Steps to Reproduce the Issue
- Open at least 2 documents, one with a small file name and one with a big file name.
- Try to swap the 2 tabs (re-order them) by dragging the small one to the other side of the bigger one .
- ????
- Profit!!!
Expected Behavior
The tabs row should not flicker, as it makes it super awkward to re-order tabs and you must sometimes try a second or a third attempt to obtain the desired result.
Actual Behavior
The tabs flicker by alterning themselves super quickly. The slower the mouse movement, the more flicker.
Debug Information
NotePad++ v6.9.2
This is due to the algorithm when you drag and drop the tabs shifting them based on an illogic comparative. What NotePad++ should be doing is to shift the tab only when it has been dragged more than 50% the width of the next tab, not when it is dragged the first pixel outside of its own boundaries. Basically, the problem is that the 2 pieces of code that 1) drag the tab and 2) check if the tab should be shifted, are not equivalent, causing a super fast flicker.
Description of the Issue
Whenever you have multiple documents open and want to re-order the tabs by dragging a small one ("tiny.c") next to a bigger one ("humongous.txt") the tabs row is flickering super fast and makes it random to 50% chances of obtaining the desired result.
Steps to Reproduce the Issue
Expected Behavior
The tabs row should not flicker, as it makes it super awkward to re-order tabs and you must sometimes try a second or a third attempt to obtain the desired result.
Actual Behavior
The tabs flicker by alterning themselves super quickly. The slower the mouse movement, the more flicker.
Debug Information
NotePad++ v6.9.2
This is due to the algorithm when you drag and drop the tabs shifting them based on an illogic comparative. What NotePad++ should be doing is to shift the tab only when it has been dragged more than 50% the width of the next tab, not when it is dragged the first pixel outside of its own boundaries. Basically, the problem is that the 2 pieces of code that 1) drag the tab and 2) check if the tab should be shifted, are not equivalent, causing a super fast flicker.