summaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/lines.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/lines.js b/assets/js/lines.js
index f22057d..6b11c6f 100644
--- a/assets/js/lines.js
+++ b/assets/js/lines.js
@@ -1,7 +1,8 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3.0-or-later
window.addEventListener('DOMContentLoaded', function () {
let lineClickHandler = (evt) => {
- if (evt.target.classList.contains("line")) {
+ if ((evt.target.classList.contains("line")) &&
+ (evt.x < evt.target.offsetLeft)) {
window.location.hash = evt.target.id;
return;
}