# Differentiate coursor and touch event stream

**URL:** <https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [November 9, 2022, 1:28pm UTC](https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546 "2022-11-09T13:28:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlanakamura](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@karlanakamura](https://discuss.elastic.co/u/karlanakamura)\
**Post date:** [November 9, 2022, 1:28pm UTC](https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546/1 "2022-11-09T13:28:43Z")

</div>

Hello,

I'm using version 8.4.3 of elastic cloud.

Is there any way to differentiate when the click is done with the cursor (mouse or touchpad) or with touch (ipad)? I developed some charts in vega, but when I open them on ipad I can't see the tooltip information, when I touch the graphic it applies the filter. I would like the tooltip to appear on the first touch and apply the filter only in the second touch, but at the same time I would like the filter to be applied on the first click when using the cursor (just like how lens charts woks). Is there a specific event stream for touch screens?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [November 9, 2022, 5:26pm UTC](https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546/2 "2022-11-09T17:26:51Z")

</div>

According to [Event Streams | Vega](https://vega.github.io/vega/docs/event-streams/) there is `touchend` and `mouseup` which are not exactly identical but might work in this situation.

---

<div class="post-metadata">

**Author:** ![karlanakamura](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@karlanakamura](https://discuss.elastic.co/u/karlanakamura)\
**Post date:** [November 9, 2022, 6:33pm UTC](https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546/3 "2022-11-09T18:33:12Z")

</div>

Hello,

This might work, thanks!  
Do you know how to combine two event streams? Like for example click AND mouseover? I want to update only if these two events happen at the same time.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [November 10, 2022, 8:19am UTC](https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546/4 "2022-11-10T08:19:03Z")

</div>

Scroll down further on the page, there are several means to merge event streams

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2022, 8:19am UTC](https://discuss.elastic.co/t/differentiate-coursor-and-touch-event-stream/318546/5 "2022-12-08T08:19:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
