File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/main/redux/sagas/win/session Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 66// ==LICENSE-END==
77
88import debug_ from "debug" ;
9- import { normalizeWinBoundRectangle } from "readium-desktop/common/rectangle/window" ;
109import { takeSpawnLeading } from "readium-desktop/common/redux/sagas/takeSpawnLeading" ;
1110import { error } from "readium-desktop/main/tools/error" ;
1211import { winActions } from "readium-desktop/main/redux/actions" ;
@@ -76,7 +75,7 @@ function* libraryMoveOrResizeObserver(action: winActions.session.registerLibrary
7675 yield debounce ( DEBOUNCE_TIME , channel , function * ( ) {
7776
7877 try {
79- let winBound = library . getBounds ( ) ; // current bounds of the window maximized/fullscreen/minimized (not on windows11, specific events)
78+ const winBound = library . getBounds ( ) ; // current bounds of the window maximized/fullscreen/minimized (not on windows11, specific events)
8079 debug ( "_______2 library.getBounds()" , winBound ) ;
8180 // winBound = normalizeWinBoundRectangle(winBound);
8281 yield put ( winActions . session . setBound . build ( id , winBound ) ) ;
Original file line number Diff line number Diff line change 66// ==LICENSE-END==
77
88import debug_ from "debug" ;
9- import { normalizeWinBoundRectangle } from "readium-desktop/common/rectangle/window" ;
109import { takeSpawnEvery } from "readium-desktop/common/redux/sagas/takeSpawnEvery" ;
1110import { error } from "readium-desktop/main/tools/error" ;
1211import { winActions } from "readium-desktop/main/redux/actions" ;
@@ -77,7 +76,7 @@ function* readerMoveOrResizeObserver(action: winActions.session.registerReader.T
7776 yield debounce ( DEBOUNCE_TIME , channel , function * ( ) {
7877
7978 try {
80- let winBound = reader . getBounds ( ) ;
79+ const winBound = reader . getBounds ( ) ;
8180 debug ( "_______1 reader.getBounds()" , winBound ) ;
8281 // winBound = normalizeWinBoundRectangle(winBound);
8382 yield put ( winActions . session . setBound . build ( id , winBound ) ) ;
You can’t perform that action at this time.
0 commit comments