fix: pdf rotation bug
This commit is contained in:
@@ -85,7 +85,7 @@ function createPageWrapper(
|
|||||||
|
|
||||||
const canvasWrapper = document.createElement('div');
|
const canvasWrapper = document.createElement('div');
|
||||||
canvasWrapper.className =
|
canvasWrapper.className =
|
||||||
'thumbnail-wrapper flex items-center justify-center p-2 h-36';
|
'thumbnail-wrapper flex items-center justify-center p-2 h-36 pointer-events-none';
|
||||||
canvasWrapper.style.transition = 'transform 0.3s ease';
|
canvasWrapper.style.transition = 'transform 0.3s ease';
|
||||||
// Apply initial rotation if it exists (negated for canvas display)
|
// Apply initial rotation if it exists (negated for canvas display)
|
||||||
const initialRotation = pageState.rotations[pageIndex] || 0;
|
const initialRotation = pageState.rotations[pageIndex] || 0;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ function createPageWrapper(
|
|||||||
|
|
||||||
const canvasWrapper = document.createElement('div');
|
const canvasWrapper = document.createElement('div');
|
||||||
canvasWrapper.className =
|
canvasWrapper.className =
|
||||||
'thumbnail-wrapper flex items-center justify-center p-2 h-36';
|
'thumbnail-wrapper flex items-center justify-center p-2 h-36 pointer-events-none';
|
||||||
canvasWrapper.style.transition = 'transform 0.3s ease';
|
canvasWrapper.style.transition = 'transform 0.3s ease';
|
||||||
// Apply initial rotation if it exists
|
// Apply initial rotation if it exists
|
||||||
const initialRotation = pageState.rotations[pageIndex] || 0;
|
const initialRotation = pageState.rotations[pageIndex] || 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user