Drag in arrow demo does not work properly

Bug #305003 reported by John La Rooy
2
Affects Status Importance Assigned to Milestone
pygoocanvas
Fix Committed
Undecided
Unassigned

Bug Description

The on_motion function in arrowhead_demo.py is using == to check the flag in event.state.
It should be using & instead.

def on_motion(item, target, event):
    canvas = item.get_canvas ()
    change = False
    if not event.state == gtk.gdk.BUTTON1_MASK:
        return False
    ...

Revision history for this message
Gian Mario Tagliaretti (gianmt) wrote :

Thanks, fix committed

Changed in pygoocanvas:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.