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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user