1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-24 05:29:43 +00:00

no jerk on touch-dragging, also touch-dragging works with quick-mouse off

This commit is contained in:
Zeno Rogue
2025-12-12 12:40:01 +01:00
parent d1c1cbcd66
commit a2f12f54c1

View File

@@ -713,7 +713,7 @@ EX void handleKeyNormal(int sym, int uni) {
multi::cpid = 0;
if(touchmode == tmode::drag) {
panning(mouseoh, mouseh);
if(holdmouse) panning(mouseoh, mouseh);
holdmouse = true;
}
else if(touchmode == tmode::info)
@@ -1340,7 +1340,7 @@ EX void handle_event(SDL_Event& ev) {
bool act = false;
if(vid.quickmouse || getcstat == PSEUDOKEY_LIST_SLIDER) {
if(vid.quickmouse || getcstat == PSEUDOKEY_LIST_SLIDER || (getcstat == '-' && touchmode == tmode::drag)) {
act = down;
}
else {