@@ -68,30 +68,30 @@ function Highlighter(options = hhDefaultOptions) {
6868 }
6969 .hh-selection-handle [draggable] {
7070 position: absolute;
71- top: 0 ;
72- width: 1em ;
73- height: calc(100% + 1em );
71+ top: -0.3em ;
72+ width: 3.2em ;
73+ height: calc(100% + 1.3em );
7474 background-color: transparent;
7575 z-index: 1;
7676 }
77- .hh-selection-handle[data-side="left"] [draggable] { right: 0 ; }
78- .hh-selection-handle[data-side="right"] [draggable] { left: 0 ; }
77+ .hh-selection-handle[data-side="left"] [draggable] { right: -2em ; }
78+ .hh-selection-handle[data-side="right"] [draggable] { left: -2em ; }
7979 .hh-default-handle {
8080 position: absolute;
81- width: 14px ;
82- height: min(20px , 100%);
81+ width: 0.8em ;
82+ height: min(1.2em , 100%);
8383 background-color: hsl(from var(--hh-color) h 80% 40% / 1);
84- outline: 1px solid white ;
85- outline-offset: -1px ;
86- bottom: -2px ;
84+ outline: 0.1em solid hsla(0, 0%, 100%, 0.8) ;
85+ outline-offset: -0.05em ;
86+ bottom: -0.2em ;
8787 }
8888 .hh-selection-handle[data-side="left"] .hh-default-handle {
8989 right: 0;
90- border-radius: 20px 0 10px 10px ;
90+ border-radius: 1em 0 0.6em 0.6em ;
9191 }
9292 .hh-selection-handle[data-side="right"] .hh-default-handle {
9393 left: 0;
94- border-radius: 0 20px 10px 10px ;
94+ border-radius: 0 1em 0.6em 0.6em ;
9595 }
9696 .hh-svg-background {
9797 position: absolute;
@@ -605,7 +605,7 @@ function Highlighter(options = hhDefaultOptions) {
605605 this . annotatableContainer . dataset . hhDragging = 'true' ;
606606 const selectionHandleClientRect = activeSelectionHandle . getBoundingClientRect ( ) ;
607607 const lineHeight = selectionHandleClientRect . bottom - selectionHandleClientRect . top ;
608- activeSelectionHandle . dataset . dragYOffset = Math . max ( 0 , event . clientY - selectionHandleClientRect . bottom + ( lineHeight / 4 ) ) ;
608+ activeSelectionHandle . dataset . dragYOffset = Math . max ( 0 , event . clientY - selectionHandleClientRect . bottom + ( lineHeight / 6 ) ) ;
609609 const selectionRange = window . getSelection ( ) . getRangeAt ( 0 ) ;
610610 dragAnchorNode = activeSelectionHandle . dataset . position === 'start' ? selectionRange . endContainer : selectionRange . startContainer ;
611611 dragAnchorOffset = activeSelectionHandle . dataset . position === 'start' ? selectionRange . endOffset : selectionRange . startOffset ;
0 commit comments