File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 77 "name" : " saibot"
88 }
99 ],
10- "version" : " 5.0.15 " ,
10+ "version" : " 5.0.16 " ,
1111 "compatibility" : {
1212 "minimum" : " 11" ,
1313 "verified" : " 13"
8888 }
8989 ],
9090 "url" : " https://github.com/Saibot393/perceptive" ,
91- "download" : " https://github.com/Saibot393/perceptive/archive/refs/tags/v5.0.15 .zip" ,
91+ "download" : " https://github.com/Saibot393/perceptive/archive/refs/tags/v5.0.16 .zip" ,
9292 "manifest" : " https://github.com/Saibot393/perceptive/releases/latest/download/module.json" ,
9393 "readme" : " https://github.com/Saibot393/perceptive/blob/main/README.md" ,
9494 "changelog" : " https://github.com/Saibot393/perceptive/blob/main/CHANGELOG.md"
Original file line number Diff line number Diff line change @@ -25,8 +25,15 @@ class StalkingManager {
2525
2626 let vScreenWidth = canvas . screenDimensions [ 0 ] ;
2727
28- if ( ! ui . sidebar . _collapsed ) {
29- vScreenWidth = vScreenWidth - ui . sidebar . position . width ;
28+ if ( game . data . release . generation > 12 ) {
29+ if ( ui . sidebar . expanded ) {
30+ vScreenWidth = vScreenWidth - ui . sidebar . element . clientWidth ;
31+ }
32+ }
33+ else {
34+ if ( ! ui . sidebar . _collapsed ) {
35+ vScreenWidth = vScreenWidth - ui . sidebar . position . width ;
36+ }
3037 }
3138
3239 let vPanTarget = { x : pCenter [ 0 ] , y : pCenter [ 1 ] }
You can’t perform that action at this time.
0 commit comments