2 ms·
It is a bit harder than that, some clicks you want to happen on mouse down, other clicks you want to happen on mouse up if the button was first primed with a mo
by Jensson 4y ago
It is a bit harder than that, some clicks you want to happen on mouse down, other clicks you want to happen on mouse up if the button was first primed with a mouse down. Exactly what you want to happen with one or the other is mostly about expectations, some things feels better one way others the other. For example, when you click a file you select it on mouse down, not on mouse up, selecting on mouse up just feels strange so it shouldn't behave like a button it should fire the action on mouse down instantly.
Edit: Just tested in windows and realized that it switches between select on mouse down and select on mouse up depending on if you click on the text or if you click on the whitespace part of the file, whitespace it selects on up... Anyway, yeah, few people do this correctly, even Microsoft has many strange things.
- deleted 4y ago[deleted]
- wongarsu 4y ago> Just tested in windows and realized that it switches between select on mouse down and select on mouse up depending on if you click on the text or if you click on the whitespace part of the file, whitespace it selects on up This is because the drag action changes. In the whitespace part, if you do mouse-down, the file gains a faint selection. If you "commit" with a mouse-up, it's selected. But you can instead move the mouse, turning it into an area selection (you draw a square and everything in that square is selected on mouse-up). If you click on the text, the selection is committed right away on mouse-down. If you move your mouse after mouse-down, you start a drag-and-drop action; which you can in turn abort by dragging the file to its original position and doing mouse-up, leaving you with the selection. Few people could describe this if asked, but on an intuitive level it seems to work, and it follows the principle of giving you rich visual feedback and letting you back out of an unintended action (just like aborting a button click before the mouse-down)