Skip to content

Item in array with a (click) event fired on "mouse up" #143

@arcio

Description

@arcio

If I drag the carousel left <> right, when I mouse up, it fires a (click) event to the object in the array.

<ngx-slick class="carousel" #slickModal="slick-modal" [config]="slideConfig" width="100%">
  <div *ngFor="let story of stories | async; let i = index" ngxSlickItem class='slide' width="100%">
    <feature-story class="story-type-a" [title]="story?.headline" [storyID]="story?.$key" [handle]="story?.handle" [avatar]="story?.avatar"
      [date]="story?.timestamp" [storyImage]="story?.image" [bgColor]="story?.bgColor" [category]="story?.category"></feature-story>
  </div>
</ngx-slick>

feature-story itself has a click handler (click)="GoToStory(storyID)"

Is there a simple way to disable this? It doesn't appear to be happening on mobile, only with the mouse/trackpad.

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