-
Notifications
You must be signed in to change notification settings - Fork 2
Description
If you mouse down on the board
Keep down and move the mouse out of the board area to the top bar
Release the mouse
Move the mouse back to the board
The board will move with your mouse
This can be easily reproduced by common users.
The real situation is that a user may try to scroll the board in a very fast speed.
The root cause of this problem is that the board catch the mousedown event, however after mouseout, the mouseup event will be caught by the top bar instead of the board. So the board keep the state of mousedown.
This may be solved either by adding a mouseout handler to the board to clear the board state upon the leaving of mouse, or passing the mousedown event to the board from the top bar.
Personally, the former solution is better.
The following is by Gan Dashen
你们呐,还是要多学习,我只是在这里告诉你们一些我的人生经验。