Use proper CMakeLists.txt for network and client directories
[oweals/minetest.git] / src / touchscreengui.cpp
index 1a5d42e9dc9f3cd7db8b434ee6be7c213665b862..a2c981cff56bfad0e01d16c3d48b4e87a18ce5d6 100644 (file)
@@ -156,7 +156,7 @@ void TouchScreenGUI::initButton(touch_gui_button_id id, rect<s32> button_rect,
 }
 
 static int getMaxControlPadSize(float density) {
-       return 200 * density * g_settings->getFloat("gui_scaling");
+       return 200 * density * g_settings->getFloat("hud_scaling");
 }
 
 void TouchScreenGUI::init(ISimpleTextureSource* tsrc, float density)
@@ -683,6 +683,10 @@ void TouchScreenGUI::step(float dtime)
                if (btn->ids.size() > 0) {
                        btn->repeatcounter += dtime;
 
+                       /* in case we're moving around digging does not happen */
+                       if (m_move_id != -1)
+                               m_move_has_really_moved = true;
+
                        if (btn->repeatcounter < 0.2) continue;
 
                        btn->repeatcounter              = 0;