fix: adapt float ball position across rotations

This commit is contained in:
7015725
2026-05-07 22:42:06 +08:00
parent ed9521cdf5
commit e0b774ccd9
3 changed files with 80 additions and 8 deletions

View File

@@ -253,10 +253,9 @@ FloatBallAppWM.prototype.startAsync = function(entryProcInfo, closeRule) {
if (self.L) self.L.updateConfig(self.config);
self.state.loadedPos = self.loadSavedPos();
self.state.screen = self.getScreenSizePx();
self.state.lastRotation = self.getRotation();
self.state.loadedPos = self.loadSavedPos();
self.createBallViews();
self.state.ballLp = self.createBallLayoutParams();