# Disable drag event on ion-item-sliding

**URL:** <https://forum.ionicframework.com/t/disable-drag-event-on-ion-item-sliding/173081>\
**Category:** Ionic Framework\
**Created:** [September 12, 2019, 8:51am UTC](https://forum.ionicframework.com/t/disable-drag-event-on-ion-item-sliding/173081 "2019-09-12T08:51:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DKlan](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DKlan](https://forum.ionicframework.com/u/DKlan)\
**Post date:** [September 12, 2019, 8:51am UTC](https://forum.ionicframework.com/t/disable-drag-event-on-ion-item-sliding/173081/1 "2019-09-12T08:51:34Z")

</div>

Hi,

I have a list of item that has ion-item-sliding / options. This list is inside a slider, so each time i’m swiping from slide to slide on off the item-sliding is opening.

I tried doing this:  
`<ion-item-sliding (ionDrag)="removeDragEvent(slidingItem)" (click)="slideClickHandle(slidingItem)" *ngFor="..." #slidingItem>`  
removeDragEvent is just a function that call the methods close every time the ionDrag is called but is is called even when i’m doing a click.

Is it possible to remove the drag event on a ion-item-slide to use a click event.

---

<div class="post-metadata">

**Author:** ![avishai\_peretz\_dev](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@avishai\_peretz\_dev](https://forum.ionicframework.com/u/avishai_peretz_dev)\
**Post date:** [September 12, 2019, 10:23am UTC](https://forum.ionicframework.com/t/disable-drag-event-on-ion-item-sliding/173081/2 "2019-09-12T10:23:14Z")

</div>

You need to decide what you want to do, Swipe slider or swipe item.  
Wring idea to put swipe item iside slider

---

<div class="post-metadata">

**Author:** ![DKlan](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DKlan](https://forum.ionicframework.com/u/DKlan)\
**Post date:** [September 12, 2019, 11:49am UTC](https://forum.ionicframework.com/t/disable-drag-event-on-ion-item-sliding/173081/3 "2019-09-12T11:49:15Z")

</div>

Thank you for your answer but this doesn’t help.  
You’re not offering any solution regarding what I want to do, I already have decided what I want to do and the fact that my idea is wrong or not is my own concern.  
I’m just looking for a solution for this particular problem and not looking for UX advice.

---

<div class="post-metadata">

**Author:** ![ozonostudio](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ozonostudio/32/133045_2.png) [@ozonostudio](https://forum.ionicframework.com/u/ozonostudio)\
**Post date:** [July 26, 2020, 4:49am UTC](https://forum.ionicframework.com/t/disable-drag-event-on-ion-item-sliding/173081/4 "2020-07-26T04:49:49Z")

</div>

with this answer I not wonder why nobody reply to you or give you a solution.
