mojira.dev
MC-12598

In inventory, right-click done after a left-click will be ignored if done within double-click time interval.

When in inventory screen, if you have let's say a stack in the mouse and do, over an empty item slot, a left-click and quickly follow up with a right click:

-In 1.4.7, the first action is done correctly (in this case, dropping the stack into the item slot), and the second action is also done immediately afterwards (in this case, quickly grabbing half the stack back). This is the correct behavior: a click done without any defined double-click behavior behaves as a single-click command.

-In 1.5 and 1.5.1, the first action is done (here, dropping the stack into the item slot), but then the second click is completely ignored.

This bug actually seems to be pervasive all across the game interface on all item slots, not merely inventory slots (crafting, smelting, etc.). It occurs both in Creative and Survival mode, and occurs 100% of the time (perfect reproductability).

Essentially, it seems as if the game tries to interpret the second click's short time interval to mean that the second click is actually part of a double-click action, and since there are no double-click actions involving the use of both mouse buttons, it just drops and ignores the second click altogether instead of using the single-click action for it.

Note that the second click is not ignored if you do the opposite: a right-click quickly followed by a left-click, will still do both actions. Same thing for two right-clicks in quick succession, or two left-clicks.

However, in the case of a left-click done quickly after a right-click, there seem to be a slight delay involved in the response time for the second click, that didn't exist before in 1.4.7.

Comments 4

This is aso very annoying when you try to switch something from an inventory slot to another slot especially if that slot contains something else: if you do the "grab from one slot" and then the "drop into another slot" clicks quick enough for the second click to occur in a "quick enough to be a double click interval" delay, then the 2nd click is ignored and you have to click a 3rd time. Gaaah...

Unable to reproduce in 13w19a.

Maybe it solved itself through an update. But maybe not. (I don't do snapshots, only main releases.)

I'll recheck again in the next official 1.5.6 release. If the problem is still there, I'll ask for a reopening the issue, and to ask for the test to be made in these conditions:

  • By a tester that is able to click fast.

  • On a setup that is not too powerful.

Please remember that this is an issue related to timing.

#1 - It may be related either to the double-click speed interval itself. In which case, the "power" of the testing setup is quite irrelevant. All it would need is setting the double-click interval to the maximum and using a fast clicking tester.

#2 - Or it may be related to actual timing delays for the game to be able to recognize 2 clicks that are standing very closely spaced apart from ach other. In which case, the "power" of the testing setup is critically important. Powerful setups will not show this second category of timing problems unless the player is inhumanly impossibly fast - faster than the mouse hardware would be able to follow anyway - and yet, still well within the insanely big FPS performance of the game. And thus, that testing setup would never be able to "see" such bugs.

Ergo, to cover all your bases, timing bugs should always be tested using crappy hardware lol! Simply because that is the easiest way to make them stand out all that much more.

My computer setup is actually rated around 500 on Passmark, and that is definitely on the low side of things. My graphic card's performances aren't too shiny either.

Anyway, I'll definitely post an update here on this issue after the official 1.5.6 comes out.

Seems fixed as of 1.7.9.

Patrick Rannou

(Unassigned)

Unconfirmed

CLICK, DOUBLE, INTERFACE, MOUSE

Minecraft 1.5, Minecraft 1.5.1

Minecraft 1.7.5

Retrieved