Issue #141 resolved
Former user created an issue

If the mouse is in motion when you release the button 1, a MOUSEBUTTONUP event is NOT added to the event queue in Windows pygame 1.9.1. I do not know if this applies to buttons 2 or 3, any MOUSEBUTTONDOWN, or later versions of pygame. There is a work around, testing for either a MOUSEBUTTONUP or a MOUSEMOTION BUTTONS status change. If not fixable or not worth fixing, the problem and work around might be worth noting in the documentation.

Comments (4)

  1. Dominic Kexel

    I also can't reproduce this, regardless of the windows version (XP/Win7/Win8).

    Maybe you should close this as invalid.

    Simple test script:

    import pygame
    pygame.display.set_mode((300, 300))
    while 1:
        for e in pygame.event.get():
            if e.type == pygame.MOUSEBUTTONUP:
                print 'up'

    up is printed even while moving the mouse.

  2. Log in to comment