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

Position not reachable when dragging #843

Open
kevinbal1 opened this issue Dec 28, 2023 · 3 comments
Open

Position not reachable when dragging #843

kevinbal1 opened this issue Dec 28, 2023 · 3 comments
Assignees
Labels
🔖4.x v4.x~ related issue 🐛Bug Bugs ❓Question Asking question about @egjs/Flicking

Comments

@kevinbal1
Copy link

kevinbal1 commented Dec 28, 2023

Description

Hello, I have an issue with Flicking using Vue 3 script setup + composition. I am swiping by dragging, and from time to time, it will throw the POSITION_NOT_REACHABLE error, and I have no idea why it throws it and in what circumstance.
Yet, sometimes it happens.

image

Edit: It seems like align: 'next' seems to be doing that, setting it to prev fixes it, could you perhaps explain why please ?

Steps to check or reproduce

const flicking = ref<Flicking | null>(null);
const flickingOptions: Partial<FlickingOptions> = {
  circular: false,
  align: 'next',
  autoResize: true,
  bound: true,
};
<div v-if="localOffers" class="hidden gap-3" :class="{ 'sm:flex': localOffers.length > 0 }">
  <div
    v-if="promotionOffer && routerRoute.name === 'offers.index'"
    class="hidden py-2 sm:block md:pt-4"
  >
    <HighlightOffer :promotionOffer="promotionOffer" />
  </div>
  <Flicking ref="flicking" class="pb-6 pt-2 md:pt-4" :options="flickingOptions">
    <div v-for="(offer, index) in localOffers" :key="`offer-${index}`" class="ml-4 w-fit">
      <Component :is="props.is" :offer="offer" :mode="props.offerType" />
    </div>
  </Flicking>
</div>
@malangfox malangfox self-assigned this Dec 29, 2023
@malangfox malangfox added 🐛Bug Bugs ❓Question Asking question about @egjs/Flicking 🔖4.x v4.x~ related issue labels Dec 29, 2023
@malangfox
Copy link
Contributor

Hello @kevinbal1.

We've been trying to reproduce this issue, but we've been unable to reproduce the issue with these options.
My guess is that this issue is related to the size of the elements set by the style.
Can you provide a demo or repo where we can reproduce this issue?

@kevinbal1
Copy link
Author

Hello @kevinbal1.

We've been trying to reproduce this issue, but we've been unable to reproduce the issue with these options. My guess is that this issue is related to the size of the elements set by the style. Can you provide a demo or repo where we can reproduce this issue?

Thank you for the response.
Are you unable to reproduce the issue with the option align: 'next' also ?

@malangfox
Copy link
Contributor

@kevinbal1

We tried using the same options you passed to reproduce this issue.

These are the vue3 environment demo and the pure javascript environment demo we tired, but this issue was not reproduced.

The circular option defaults to false, so in these two demos, we use the following combinations of options.

  align: 'next',
  autoResize: true,
  bound: true,

Is there anything else we can know to reproduce what you are experiencing?

Moreover, can you reproduce this when you exclude the autoResize or bound options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖4.x v4.x~ related issue 🐛Bug Bugs ❓Question Asking question about @egjs/Flicking
Projects
None yet
Development

No branches or pull requests

2 participants