relativeY
in click
and dblclick
events does not have the correct value
#3687
Labels
relativeY
in click
and dblclick
events does not have the correct value
#3687
Bug description
Seems like due to a copy-paste the
y
variable is not initialized with the correct value.wavesurfer.js/src/renderer.ts
Lines 75 to 82 in 43adad5
const y = e.clientX - rect.left
Perhaps should have been:
const y = e.clientY - rect.top
Environment
Minimal code snippet
Expected result
y
value should be correctObtained result
y
value is not correctScreenshots
The text was updated successfully, but these errors were encountered: