Skip to content

scrollSensitivity ignored when passed via options object on mobile #271

Description

@levinjoller

I am using Android 15 and noticed a slight difference in behavior between the configuration with and without the 'options' object.

The following configuration works fine on both mobile and in the browser. In the browser, there is a noticeably larger area at the edge where scrolling starts to trigger, thanks to the scroll-sensitivity setting:

<VueDraggable
  :scroll="true"
  :scroll-sensitivity="100"
  :scroll-speed="10"
  :force-fallback="true"
  :fallback-on-body="true"
>

On the other hand, if I define the configuration within the options object, scrollSensitivity seems to have no effect and is ignored:

<VueDraggable
  :options="{
    scroll: true,
    scrollSensitivity: 100,
    scrollSpeed: 10,
    forceFallback: true,
    fallbackOnBody: true,
  }"
>

Am I doing something wrong with the second approach? Am I not supposed to put these specific settings into the options object, or is this a bug (misbehavior)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions