Skip to content

Commit

Permalink
removed preventDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
lena.natter committed Apr 29, 2024
1 parent d3db12b commit 087c13b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fusonic/pdf.js",
"version": "2.0.0-5-dev2",
"version": "2.0.0-5-dev3",
"devDependencies": {
"@babel/core": "^7.22.17",
"@babel/plugin-transform-modules-commonjs": "^7.22.15",
Expand Down
6 changes: 4 additions & 2 deletions web/pdf_presentation_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@ class PDFPresentationMode {
return;

Check failure on line 241 in web/pdf_presentation_mode.js

View workflow job for this annotation

GitHub Actions / Test

Unnecessary return statement
}
// Unless an internal link was clicked, advance one page.
evt.preventDefault();

//Custom behaviour do not change page on click
//Custom behaviour do not change page on click

Check failure on line 245 in web/pdf_presentation_mode.js

View workflow job for this annotation

GitHub Actions / Test

Delete `··`

Check failure on line 245 in web/pdf_presentation_mode.js

View workflow job for this annotation

GitHub Actions / Test

Expected space or tab after '//' in comment
// evt.preventDefault();

Check failure on line 246 in web/pdf_presentation_mode.js

View workflow job for this annotation

GitHub Actions / Test

Delete `⏎`


Check failure on line 248 in web/pdf_presentation_mode.js

View workflow job for this annotation

GitHub Actions / Test

More than 1 blank line not allowed
// if (evt.shiftKey) {
// this.pdfViewer.previousPage();
// } else {
Expand Down

0 comments on commit 087c13b

Please sign in to comment.