Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: If the containing div is of limited width / size, clicking on the waveform is no longer precise #7

Open
jasonkaplan79 opened this issue Aug 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jasonkaplan79
Copy link

jasonkaplan79 commented Aug 6, 2024

Description of the bug

If the containing div is of limited width / size, clicking on the waveform is no longer precise...the precision of the cursor gets really bad and it becomes hard to click on the exact point you want to play from.

In the following example, w-1/4 is a tailwindcss class. Using w-1/3, w-1/2, etc works fine.

<div class="w-1/4">
    <IllestWaveform
        ref="waveformRef"
        v-bind="waveOptions"
        @on-init="initHandler"
        @on-fetched="fetchedHandler"
        @on-ready="readyHandler"
        @on-play="onPlay"
        @on-pause="onPause"
        @on-finish="finishHandler"
        @on-click="clickHandler"
    />
</div>
@jasonkaplan79 jasonkaplan79 added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants