#4261: Preventing Unwanted Drag Events
-------------------------------------------------+-------------------------
        Reporter:  wuz21m                        |      Owner:
            Type:  patch (an actual patch, not   |     Status:  new
  a request for one)                             |  Milestone:  unspecified
        Priority:  normal                        |    Version:  unspecified
       Component:  other                         |
Operating System:  All/Non-Specific              |
-------------------------------------------------+-------------------------
 Hi, this is my first patch! (Thanks for all the efforts!)

 Warzone 2100 has this annoying behavior that even the smallest drag counts
 as a selection events.

 It has happened to me multiple times that when I am clicking furiously to
 get the units to move, it acts as selection and unselects my units (I
 wonder how many units I lost to that).

 But worry not!

 I have written this small patch against display.cpp. When a drag event is
 to be registered, it uses a simple Manhattan distance. If it is less than
 a hardcoded value (10 at the moment), it will not register as selection.

 Based on my testing, it is taking away many issues!

--
Ticket URL: <http://developer.wz2100.net/ticket/4261>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to