# MouseDrag Event Does Not Fire on Raspberry Pi w/ TouchScreen

**URL:** <https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886>\
**Category:** Raspberry Pi\
**Created:** [October 26, 2019, 5:58am UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886 "2019-10-26T05:58:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Bombay](https://forum.xojo.com/user_avatar/forum.xojo.com/alex_bombay/32/224_2.png) [@Alex\_Bombay](https://forum.xojo.com/u/Alex_Bombay)\
**Post date:** [October 26, 2019, 5:58am UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886/1 "2019-10-26T05:58:11Z")

</div>

\<[https://xojo.com/issue/55508](https://xojo.com/issue/55508)\>

This also appears to stop DragItem.Drag from working. I was able to make a sloppy work around the Mouse.Drag event with a timer and Window.MouseX/Y but I don’t see any way to solve this DragItem issue.

Has anyone had any success with RPi TouchScreen and DragItems, maybe a workaround?

Thanks!

---

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [October 29, 2019, 9:15pm UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886/2 "2019-10-29T21:15:13Z")

</div>

In my experience it really depends on the maker of the touchscreen, and the driver(s) they provide. In the case of a screen I’m working with right now it registers touch as a MouseDown, but only once you lift your finger. So pressing-and-holding does nothing (and won’t support a Mouse.drag event). I think it all has to do with how sophisticated your touchscreen is, as to whether or not you can support the interaction you’re looking for.

---

<div class="post-metadata">

**Author:** ![Alex\_Bombay](https://forum.xojo.com/user_avatar/forum.xojo.com/alex_bombay/32/224_2.png) [@Alex\_Bombay](https://forum.xojo.com/u/Alex_Bombay)\
**Post date:** [October 29, 2019, 9:38pm UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886/3 "2019-10-29T21:38:30Z")

</div>

> [@460887:@William Reynolds](#):
>
> In my experience it really depends on the maker of the touchscreen, and the driver(s) they provide. In the case of a screen I’m working with right now it registers touch as a MouseDown, but only once you lift your finger. So pressing-and-holding does nothing (and won’t support a Mouse.drag event). I think it all has to do with how sophisticated your touchscreen is, as to whether or not you can support the interaction you’re looking for.

I am using the official 7 touch screen, I would think it would have the best support?

---

<div class="post-metadata">

**Author:** ![William\_Reynolds](https://forum.xojo.com/user_avatar/forum.xojo.com/william_reynolds/32/565_2.png) [@William\_Reynolds](https://forum.xojo.com/u/William_Reynolds)\
**Post date:** [October 29, 2019, 9:52pm UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886/4 "2019-10-29T21:52:29Z")

</div>

One of our offices has a ton of those in use - I’ll be there later this week, I’ll check it out.

---

<div class="post-metadata">

**Author:** ![Alex\_Bombay](https://forum.xojo.com/user_avatar/forum.xojo.com/alex_bombay/32/224_2.png) [@Alex\_Bombay](https://forum.xojo.com/u/Alex_Bombay)\
**Post date:** [October 29, 2019, 10:01pm UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886/5 "2019-10-29T22:01:51Z")

</div>

> [@460903:@William Reynolds](#):
>
> One of our offices has a ton of those in use - I’ll be there later this week, I’ll check it out.

Thanks, for reference Im using a Pi 4 with the latest raspbian, would be interesting to see if there is any difference between models or operating systems.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 4:08pm UTC](https://forum.xojo.com/t/mousedrag-event-does-not-fire-on-raspberry-pi-w-touchscreen/50886/6 "2021-04-29T16:08:53Z")

</div>


