]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix an incorrect all to set_button_state in Touchscreen::touch_up
authorMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 01:38:29 +0000 (03:38 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 01:54:43 +0000 (03:54 +0200)
source/input/touchscreen.cpp

index 95fd272200b03802e43d517f01af99ca1ec49831..18e795fe83a91da20451ef42e85a17423cc2373c 100644 (file)
@@ -72,7 +72,7 @@ void Touchscreen::touch_move(unsigned id, float x, float y)
 void Touchscreen::touch_up(unsigned id)
 {
        unsigned i = map_point_id(id);
-       set_button_state(i, true, false);
+       set_button_state(i, false, true);
        active_points[i] = UNUSED;
 }