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.

Click Outside Annotation, Closes Annotation Dialog Box

Home Forums Puzzles Click Outside Annotation, Closes Annotation Dialog Box

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71521
    John Sperry
    Customer

    Hi there, is there a way, with puzzles, to close one or all annotation dialog boxes by clicking anywhere outside of the annotations? Currently the dialog boxes only close if you click on the box or click the annotation itself a second time; I would like to close the dialog boxes by clicking anywhere on the page.

    I attached an image, I would have thought I could accomplish my goal with something like this. But in the “event” drop down, there is no click outside option.

    Thank you!

    Attachments:
    You must be logged in to view attached files.
    #71531
    xeon
    Customer

    It dependent on a few things but if you are using the annotation puzzle to create the annotation you can use an HTML event listener pointerleave, mouseout, to the specific dialog box the annotation created. Typically the dialog box for poi1 is poi1_dialog. Note, you have to close the dialog while the even listener exists.

    Another approach is to create a procedure that has remove annotations for each annotation you have. Then you create when clicked puzzles that runs this procedure first before adding any other annotations…..this way all anotations are removed…then. you add a new one where you want.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #71564
    John Sperry
    Customer

    Thank you very much for the help @xeon

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