# Detect Drag If Pressed Node Help!

**URL:** <https://forums.unrealengine.com/t/detect-drag-if-pressed-node-help/471713>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 21, 2020, 7:56pm UTC](https://forums.unrealengine.com/t/detect-drag-if-pressed-node-help/471713 "2020-09-21T19:56:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_d-235f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A\_d-235f](https://forums.unrealengine.com/u/A_d-235f)\
**Post date:** [September 21, 2020, 7:56pm UTC](https://forums.unrealengine.com/t/detect-drag-if-pressed-node-help/471713/1 "2020-09-21T19:56:29Z")

</div>

Heyo! I have [this](https://imgur.com/a/wdQgOmo) overridable function **OnPreviewMouseButtonDown** that has 2 **Detect Drag If Pressed** nodes. Each one does different things (One splits the stack in my inventory and the other one moves the item into another slot). I put a sequence but only the first one works (Middle Mouse Button). I want both of these to work depending on what i click. Any help?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 21, 2020, 8:59pm UTC](https://forums.unrealengine.com/t/detect-drag-if-pressed-node-help/471713/2 "2020-09-21T20:59:54Z")

</div>

Get `Effecting Button` from that Mouse Event and do a comparison ==

edit: untested but something along the lines of:

 ![314502-screenshot-2020-09-21-220526.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/2/7e2fb9f34b8b4a0911a0ebca2e4153ea31e614f1.jpeg)

---

<div class="post-metadata">

**Author:** ![A\_d-235f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A\_d-235f](https://forums.unrealengine.com/u/A_d-235f)\
**Post date:** [September 21, 2020, 9:02pm UTC](https://forums.unrealengine.com/t/detect-drag-if-pressed-node-help/471713/3 "2020-09-21T21:02:45Z")

</div>

Worked great! Thank you :D!
