@samuelbradshaw/highlight-helper-js 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/highlight-helper.js +3 -0
- package/package.json +1 -1
package/highlight-helper.js
CHANGED
|
@@ -272,6 +272,9 @@
|
|
|
272
272
|
this._dragAnchorOffset = this._activeHandle.dataset.hhPosition === 'start' ? selectionRange.endOffset : selectionRange.startOffset;
|
|
273
273
|
this._container.addEventListener('pointermove', respondToHandleDrag, { signal: this._controller.signal });
|
|
274
274
|
this._updateSelectionState();
|
|
275
|
+
|
|
276
|
+
// Check for tap targets so hh:tap can fire if the area around a handle is tapped without dragging (tap result will reset to null if the user starts dragging)
|
|
277
|
+
this._tapResult = this._checkForTapTargets(event);
|
|
275
278
|
}
|
|
276
279
|
// Prevent default drag interaction (which would show a thumbnail and drag selected text)
|
|
277
280
|
return event.preventDefault();
|
package/package.json
CHANGED