From acc7eef6e5be2bdb1fdd387b06b033bd3b3eb9d1 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 10 Feb 2014 16:02:36 +0000 Subject: fix drag problem with touch --- diff --git a/NEWS b/NEWS index 4e4003d..d3d556f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +18 + +BUG FIX: +* Fixed problem with using drag with touch. + 17 ENHANCEMENT: diff --git a/activity/activity.info b/activity/activity.info index 724a211..e98613e 100755 --- a/activity/activity.info +++ b/activity/activity.info @@ -4,6 +4,6 @@ summary = Prove Sir Isaac Newton right! Create real life simulations using diffe bundle_id = org.laptop.physics exec = sugar-activity activity.PhysicsActivity icon = activity-physics -activity_version = 17 +activity_version = 18 show_launcher = yes mime_types = application/x-physics-activity; diff --git a/tools.py b/tools.py index 78737f4..cda745b 100644 --- a/tools.py +++ b/tools.py @@ -574,7 +574,7 @@ class GrabTool(Tool): self.game.world.add.remove_mouseJoint() else: self._current_body = None - elif event.type == MOUSEMOTION and event.buttons[0]: + elif event.type == MOUSEMOTION: # and event.buttons[0]: # Move it around if self.game.world.run_physics: # Use box2D mouse motion -- cgit v0.9.1