Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #32 #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyglet_gui/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,11 @@ def on_mouse_motion(self, x, y, dx, dy):
if self.hit_test(x, y):
if not self._root_group.is_on_top():
self.pop_to_top()
return True

def on_mouse_press(self, x, y, button, modifiers):
retval = ControllerManager.on_mouse_press(self, x, y, button, modifiers)
if self.hit_test(x, y):
if not retval:
if not retval and self.is_movable:
self._is_dragging = True
retval = True
return retval
Expand Down