Skip to content

Commit b088841

Browse files
committed
chore(deps): bump @libresign/pdf-elements from 1.2.3 to 1.2.4
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e9d9090 commit b088841

3 files changed

Lines changed: 43 additions & 5 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@codemirror/state": "^6.6.0",
3131
"@codemirror/view": "^6.41.0",
3232
"@fontsource/dancing-script": "^5.2.8",
33-
"@libresign/pdf-elements": "^1.2.3",
33+
"@libresign/pdf-elements": "^1.2.4",
3434
"@marionebl/option": "^1.0.8",
3535
"@mdi/js": "^7.4.47",
3636
"@mdi/svg": "^7.4.47",
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2026 LibreSign contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
import { devices, expect, test } from '@playwright/test'
7+
8+
test.use({
9+
...devices['Pixel 7'],
10+
})
11+
12+
test('PDF viewer allows horizontal scrolling on mobile viewport', async ({ page }) => {
13+
// Navigate to a test page with a wide PDF
14+
await page.goto('./apps/libresign')
15+
16+
// Wait for the app to load
17+
await expect(page.locator('[class*="pdf-editor"]')).toBeVisible({ timeout: 10000 })
18+
19+
// Verify the PDF elements root container exists and is scrollable
20+
const pdfRoot = page.locator('.pdf-elements-root')
21+
await expect(pdfRoot).toBeVisible()
22+
23+
// Check that overflow-x is set to auto (not hidden)
24+
const computedStyle = await pdfRoot.evaluate((el) => {
25+
return window.getComputedStyle(el).overflowX
26+
})
27+
28+
expect(computedStyle).not.toBe('hidden')
29+
expect(['auto', 'scroll']).toContain(computedStyle)
30+
31+
// Verify touch-action is set correctly for touch events
32+
const touchAction = await pdfRoot.evaluate((el) => {
33+
return window.getComputedStyle(el).touchAction
34+
})
35+
36+
expect(touchAction).toContain('pan')
37+
expect(touchAction).not.toContain('pinch-zoom')
38+
})

0 commit comments

Comments
 (0)