Wavesurfer.js: The cursor show outside the wrapper when try to use cursor plugin.

Created on 30 Oct 2018  路  5Comments  路  Source: katspaugh/wavesurfer.js

Wavesurfer.js version(s): 2.1.0

Browser version(s): 69.0.3497.100

Code needed to reproduce the issue:

https://codepen.io/ElvinWang/pen/OBGmRg

Use behaviour needed to reproduce the issue:

I鈥檓 new to wavesurferjs and want to use the cursor plugin. Try a simple demo like the code in the codepen. But the cursur show outside the wrapper. I dont know where is wrong, can you help me out.
Thanks a lot!

plugins question

Most helpful comment

@thijstriemstra the example is correct

examples/css/style.css

90 #waveform {
91     position: relative;
92 }

All 5 comments

@tbogard any ideas? Did #1511 fix this as well?

@ellVin set your wavesurfer container style to position: relative cause cursor is set to position absolute

@ellVin set your wavesurfer container style to position: relative cause cursor is set to position absolute

thanks!

@ellVin is this also happening with the cursor example in the repository? if so, can you fix it there as well and make a pull request?

@thijstriemstra the example is correct

examples/css/style.css

90 #waveform {
91     position: relative;
92 }
Was this page helpful?
0 / 5 - 0 ratings