1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-02 10:48:04 +00:00

fixed incorrect scrolling when clicking the mousewheel from outside the Poincare disk

This commit is contained in:
Zeno Rogue
2025-02-24 00:11:18 +01:00
parent 925ec61fb6
commit 2775a120af
3 changed files with 2 additions and 3 deletions

View File

@@ -163,7 +163,6 @@ EX void movevrdir(hyperpoint vec) {
}
EX void calcMousedest() {
if(mouseout()) return;
if(vid.revcontrol == true) { mouseh[0] = -mouseh[0]; mouseh[1] = -mouseh[1]; }
ld mousedist = hdist(mouseh, tC0(ggmatrix(cwt.at)));
mousedest.d = -1;
@@ -219,6 +218,7 @@ EX void mousemovement() {
}
if(protect_memory()) return;
if(mouseout()) return;
calcMousedest();
if(!canmove) movepcto(mousedest), remission(); else movepcto(mousedest);