We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to listen to mouse double click rather than click?

Home Forums Programming How to listen to mouse double click rather than click?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33411
    derekwang0605
    Customer

    Suppose I have more than hundreds of objects need to be listened to the mouse clicks.How to find the its parent group name by clicked object? Also how to register double clicks if possible?
    registerOnClick([‘ALL_OBJECTS’], function() {
    console.log(‘clickedobject=’,_pGlob.pickedObject);
    }, function() {});

    Also how to block the web user to know your js code by F12?

    #33442

    you can find the referecne to the object by its name, then find its parent through API

    Double clicks should be coded manually, no support in puzzle yet, sorry

    Also how to block the web user to know your js code by F12?

    you can use a JS minifier for that

    Chief 3D Verger | LinkedIn | Twitter

    #33447
    derekwang0605
    Customer

    Thanks! Indeed helpful!

    #33463
    derekwang0605
    Customer

    Indeed helpful!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.