question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mouse events don't trigger on parent or any children on touch devices / emulator

See original GitHub issue

Using version v1.7.1

Are click events being hijacked on all children? I’ve tried putting a click handler on every level of the following template code, but no click event will fire when clicking within the VDR parent area.

I also set a document level event listener with the same issue above. Any clicks within the VDR parent element do not trigger a call back.

I am using the library to grab and pan a map image, and I need map pins to be clickable. Any thoughts on how to achieve this?

Thanks!

.Maps
  v-ons-toolbar
    .center Maps

  .map-container
    vue-draggable-resizable(
      :resizable="false"
      :parent="true"
      :minw="1500"
      :minh="1000"
      :h="1000"
      :x="250"
      :y="100"
      :drag-cancel="'.no-drag'"
    )
      visual(image="/static/img/fpo-map.png")

      .pins
        MapPin(@click="onClick" x="800" y="300") 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TitanFightercommented, Sep 27, 2018

@Lemenxzy Above your comment you can read:

mauricius closed this in cbbe7c3 14 days ago

So yes, it is fixed.

1reaction
mauriciuscommented, Sep 12, 2018

I’m going to fix it this weekend, so it’s just a matter of few days 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

handle both mouse and touch events on touch screens
Firing of events mousedown and touchstart will produce double calls for handlers on devices that support both (probably touch fires first). The same...
Read more >
Input management — Kivy 2.1.0 documentation
Input architecture¶ · Touch events: a motion event that contains at least an X and Y position. All the touch events are dispatched...
Read more >
Manual: Unity XR Input
For example, Unity defines the InputFeatureUsage called trigger as a single-axis input that the ... no matter which controller or input device provides...
Read more >
ScrollView - Android Developers
To add multiple views within the scroll view, make the direct child you add a view ... Implement this method to intercept all...
Read more >
Touch and Manipulation Tutorial - Documentation - NoesisGUI
Gesture events · Tapped. Tapped triggers when a finger is touched to the screen briefly, and removed. · DoubleTapped. A DoubleTap interaction is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found