Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Click face mouse event not working on device

ANSWERED

On my clock face, I have following in index.gui

 

<image id="container"   pointer-events="visible" fill="green" href="images/heart.png"  x="0" y="0" width="25" height="25" />

In index.js I have

document.getElementById("container").onmousedown = function(e) {

  console.log("click");
}

log statement work on simulator for every I click I do.

But on device, it seldom gets printed.

Any pointers on this ?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Perhaps try a <rect> element on top, and take the click from that.

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

Perhaps try a <rect> element on top, and take the click from that.

Best Answer
0 Votes