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

Drag not working on Chrome/Brave & Chrome IOS #185

Open
TAJ4K opened this issue Aug 19, 2022 · 6 comments
Open

Drag not working on Chrome/Brave & Chrome IOS #185

TAJ4K opened this issue Aug 19, 2022 · 6 comments

Comments

@TAJ4K
Copy link

TAJ4K commented Aug 19, 2022

Hey, I recently started a project and decided to use Vueper-Slides for my carousel, I'm 99% sure I read the documentation correct, so I'm unsure why dragging is not working on desktop or pc, could it be a z-index issue somehow? The cursor for touchable shows, just dragging does nothing

<div id="carousel">
      <VueperSlides
        :parallax="parallax"
        :draggingDistance="50"
        :lazyLoadOnDrag="true"
        :lazy="true"
        :touchable="true"
        :progress="true"
        :slideMultiple="true"
        preventYScroll
        fixed-height="75vh"
      >
        <VueperSlide
          v-for="(slide, index) in pictures"
          :key="index"
          :alt="slide.description"
          :image="slide.link"
        >
        </VueperSlide>
      </VueperSlides>
    </div>
@michaelnguyen-nl
Copy link

Hello, my friend had this exact issue.

Are you getting the pictures dynamically?
v-for="(slide, index) in pictures"

@TAJ4K
Copy link
Author

TAJ4K commented Sep 27, 2022

Yeah, pictures array is returned from a GET to my API.

@michaelnguyen-nl
Copy link

michaelnguyen-nl commented Sep 28, 2022

Try adding a v-if="pictures" on <VueperSlides>. This should fix the problem by rendering VueperSlides together with the VueperSlide images.

The dragging issue is caused by the <VueperSlide> being rendered after you have initialized the <VueperSlides>.

@TAJ4K
Copy link
Author

TAJ4K commented Sep 28, 2022

That somewhat worked but gave me inconsistency, so I just made a new variable and used that with v-if and just manually changed it to be true when pictures loaded, and that seemed to fix my problem perfectly.

TYSM

@TAJ4K
Copy link
Author

TAJ4K commented Sep 28, 2022

Going to leave this open because I still think it's a bug with the library

@michaelnguyen-nl
Copy link

No problem, goodluck with your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants