Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-mod_pdfannotator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-mod_pdfannotator
Commits
9f990769
Commit
9f990769
authored
4 years ago
by
hendrik.donath
Committed by
Friederike Schwager
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a scrolling bug, added some comments
parent
91dfad23
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
shared/index.js
+10
-6
10 additions, 6 deletions
shared/index.js
version.php
+1
-1
1 addition, 1 deletion
version.php
with
11 additions
and
7 deletions
shared/index.js
+
10
−
6
View file @
9f990769
...
@@ -5936,15 +5936,17 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -5936,15 +5936,17 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
(0,_utils.disableUserSelect)();
(0,_utils.disableUserSelect)();
}
}
// Handle document.touchstart event
function handleDocumentTouchstart(e){
function handleDocumentTouchstart(e){
document.documentElement.style.overflow = 'hidden';
document.getElementById('content-wrapper').style.overflow = 'hidden';
document.body.style.overflow = 'hidden';
var svg=void 0;
var svg=void 0;
if(_type!=='area'||!(svg=(0,_utils.findSVGAtPoint)(e.touches[0].clientX,e.touches[0].clientY))){
if(_type!=='area'||!(svg=(0,_utils.findSVGAtPoint)(e.touches[0].clientX,e.touches[0].clientY))){
return;
return;
}
}
// Disable scrolling on the page.
document.documentElement.style.overflow = 'hidden';
document.getElementById('content-wrapper').style.overflow = 'hidden';
document.body.style.overflow = 'hidden';
var rect=svg.getBoundingClientRect();
var rect=svg.getBoundingClientRect();
originY=e.touches[0].clientY;
originY=e.touches[0].clientY;
originX=e.touches[0].clientX;
originX=e.touches[0].clientX;
...
@@ -5975,6 +5977,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -5975,6 +5977,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
}
}
}
}
// Handle document.touchmove event
function handleDocumentTouchmove(e){
function handleDocumentTouchmove(e){
var svg=overlay.parentNode.querySelector('svg.annotationLayer');
var svg=overlay.parentNode.querySelector('svg.annotationLayer');
var rect=svg.getBoundingClientRect();
var rect=svg.getBoundingClientRect();
...
@@ -6028,8 +6031,9 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -6028,8 +6031,9 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
}
}
}
}
}
}
// Handle document.touchend event
function handleDocumentTouchend(e){
function handleDocumentTouchend(e){
// Enable the scrolling again
document.documentElement.style.overflow = 'auto';
document.documentElement.style.overflow = 'auto';
document.getElementById('content-wrapper').style.overflow = 'auto';
document.getElementById('content-wrapper').style.overflow = 'auto';
document.body.style.overflow = 'auto';
document.body.style.overflow = 'auto';
...
@@ -6088,7 +6092,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
...
@@ -6088,7 +6092,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
}
}
function handleCancelClick(e){
function handleCancelClick(e){
// When using on mobile devices
the document
scrolling will be prevented, here we have to allow it again
// When using on mobile devices scrolling will be prevented, here we have to allow it again
.
document.documentElement.style.overflow = 'auto';
document.documentElement.style.overflow = 'auto';
document.getElementById('content-wrapper').style.overflow = 'auto';
document.getElementById('content-wrapper').style.overflow = 'auto';
document.body.style.overflow = 'auto';
document.body.style.overflow = 'auto';
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
9f990769
...
@@ -25,6 +25,6 @@
...
@@ -25,6 +25,6 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
component
=
'mod_pdfannotator'
;
// Full name of the plugin (used for diagnostics).
$plugin
->
component
=
'mod_pdfannotator'
;
// Full name of the plugin (used for diagnostics).
$plugin
->
version
=
2021020
3
00
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
version
=
2021020
4
00
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
release
=
'PDF Annotator v1.4 release 5'
;
$plugin
->
release
=
'PDF Annotator v1.4 release 5'
;
$plugin
->
requires
=
2016112900
;
// Requires this Moodle version.
$plugin
->
requires
=
2016112900
;
// Requires this Moodle version.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment