wavesurfer.js icon indicating copy to clipboard operation
wavesurfer.js copied to clipboard

Spectrogram labels when scrolling

Open Brabudu opened this issue 5 years ago • 4 comments

It would be useful to be able to choose, in case of scrolling, if the labels of the spectrogram should move with the spectrogram or be fixed (css position: fixed). Thank you

Brabudu avatar Jun 12 '19 12:06 Brabudu

@Brabudu if you have a fix for this, please open a pull request!

thijstriemstra avatar Jun 14 '19 21:06 thijstriemstra

when fix this it goes away from spectrogram position fixed is not working

KerryTucker avatar Sep 19 '19 14:09 KerryTucker

When fix the position fixed/sticky label position sticky/fixed is not working.


Thanks, Iquebal

Iquebal avatar Mar 02 '21 14:03 Iquebal

@Brabudu You ask for the possibility to choose between fixed and absolute, but to me the current 'fixed' behaviour just seems like a bug - I can't think of a use-case where this would be the intended behaviour. I've submitted PR #2558 that would just always make it absolute.

Do you have a use-case in mind where 'fixed' would still be required?

For others finding this issue: a temporary work-around before the PR is merged can be achieved with the following CSS:

spectrogram .spec-labels {
  position:absolute !important;
}

musicog avatar Aug 01 '22 08:08 musicog