]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/touchscreen.cpp
Fix an incorrect all to set_button_state in Touchscreen::touch_up
[libs/gui.git] / 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;
 }