fix: pdf rotation bug

This commit is contained in:
alam00000
2026-04-08 16:22:09 +05:30
parent d17969a50d
commit a55a69487e
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;