Čára (pointer) opravy nemá vůbec interagovat s klikáním

This commit is contained in:
Jonas Havelka 2025-01-21 07:37:36 +01:00
parent 2deccfada4
commit 7a4c8239f6
3 changed files with 5 additions and 8 deletions

View file

@ -62,12 +62,14 @@ img{background:white;}
.pointer {
border-width: 1px;
--alpha: 0.35;
--alpha: 0.35;
pointer-events: none;
}
.pointer-hi {
border-width: 3px;
--alpha: 1;
pointer-events: none;
}

View file

@ -43,9 +43,8 @@ function place_comments_one_div(img_id, comments)
elp.style.top = y ;
elp.style.width = w - x + w_skip;
elp.style.height = pointer_min_h + delta_y;
elp.img_id = img_id;
el.img_id = img_id;
el.img_id = img_id;
el.style.position = 'absolute';
el.style.left = w + w_skip;
el.style.top = y + delta_y;
@ -89,10 +88,6 @@ function img_click(element, ev) {
dy = ev.offsetY;
}
var img_id = element.id;
if( element.img_id != null ) {
// click was to '-pointer'
img_id = element.img_id;
}
return show_form(img_id, dx, dy, '', '', '', '');
}
// hide or show text of correction

View file

@ -1,6 +1,6 @@
{% load static %}
<div onclick='img_click(this,event)'
<div
id='op{{o.id}}-pointer'
class='pointer'
data-opravastatus="{{o.status}}"