diff --git a/shared/index.js b/shared/index.js
index 1a9f5aee978ddcd31708cedc9181c460d05187db..784ad463a5e003709c7738321af14c5d37ec2cf1 100644
--- a/shared/index.js
+++ b/shared/index.js
@@ -5936,15 +5936,17 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
             (0,_utils.disableUserSelect)();
         }
 
+        // Handle document.touchstart event
         function handleDocumentTouchstart(e){
-            document.documentElement.style.overflow = 'hidden';
-            document.getElementById('content-wrapper').style.overflow = 'hidden';
-            document.body.style.overflow = 'hidden';
-
             var svg=void 0;
             if(_type!=='area'||!(svg=(0,_utils.findSVGAtPoint)(e.touches[0].clientX,e.touches[0].clientY))){
                 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();
             originY=e.touches[0].clientY;
             originX=e.touches[0].clientX;
@@ -5975,6 +5977,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
             }
         }
 
+        // Handle document.touchmove event
         function handleDocumentTouchmove(e){
             var svg=overlay.parentNode.querySelector('svg.annotationLayer');
             var rect=svg.getBoundingClientRect();
@@ -6028,8 +6031,9 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
                 }
             }
         }
-
+        // Handle document.touchend event
         function handleDocumentTouchend(e){
+            // Enable the scrolling again 
             document.documentElement.style.overflow = 'auto';
             document.getElementById('content-wrapper').style.overflow = 'auto';
             document.body.style.overflow = 'auto';
@@ -6088,7 +6092,7 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
         }
         
         function handleCancelClick(e){
-            // When using on mobile devices the documentscrolling 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.getElementById('content-wrapper').style.overflow = 'auto';
             document.body.style.overflow = 'auto';
diff --git a/version.php b/version.php
index ea0afee33f851d2a1c71bdcea6b672917063315a..cfe331d4f84d50bfa04bf6b3e54676169566c80c 100644
--- a/version.php
+++ b/version.php
@@ -25,6 +25,6 @@
 defined('MOODLE_INTERNAL') || die();
 
 $plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
-$plugin->version   = 2021020300; // The current module version (Date: YYYYMMDDXX).
+$plugin->version   = 2021020400; // The current module version (Date: YYYYMMDDXX).
 $plugin->release  = 'PDF Annotator v1.4 release 5';
 $plugin->requires  = 2016112900; // Requires this Moodle version.