Ticket #1236 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

"Sticky" tooltips

Reported by: jng Owned by: liuar
Priority: low Milestone:
Component: AJAX Viewer Version:
Severity: major Keywords:
Cc: External ID:

Description (last modified by jng) (diff)

Currently tooltips will always follow the mouse pointer, as a result if there is any interactive content inside the tooltip, it is impossible to actually interact with the said content using the mouse.

What the tooltip should ideally do is to stay at the position it was first displayed, and only disappear when the mouse pointer leaves the tooltip's bounding box. This is how it's done in Fusion and allows for clicking of any interactive content inside the tooltip.

Attachments

stickytooltips.patch Download (1.5 KB) - added by jng 3 years ago.
Patch to implement sticky tooltips
tooltip.png Download (83.9 KB) - added by liuar 3 years ago.
fspreview.PNG Download (18.8 KB) - added by jng 3 years ago.
Feature Source Preview of VotingDistricts?

Change History

Changed 3 years ago by jbirch

  • version 2.2.0 deleted

Removing version from enhancement request

Changed 3 years ago by jng

  • description modified (diff)
  • summary changed from Allow the tooltip to stay at the same position instead of following the mouse pointer. to "Sticky" tooltips

Changed 3 years ago by jng

  • owner set to jng

Changed 3 years ago by jng

Patch to implement sticky tooltips

Changed 3 years ago by tomfukushima

  • owner changed from jng to liuar

Arthur, can you review this?

Changed 3 years ago by jng

Is this patch good for submission?

Changed 3 years ago by liuar

Hi jng,

the code looks good, but the result in my machine seems wrong.

please see the attached image.

Arthur

Changed 3 years ago by liuar

Changed 3 years ago by jng

Yes I see the problem too.

But the thing is I revert the ajaxmappane.templ back to the original current version in 2.2/trunk and I still get the same incorrect tooltip!

Changed 3 years ago by jng

Okay, I've found the problem. The Districts layer of the Sheboygan dataset has the wrong label expression. It is using the expression:

concat('District ', Autogenerated_SDF_ID)

The Autogenerated_SDF_ID does not line up with the label, hence the disparate tooltips.

Changed 3 years ago by jng

Feature Source Preview of VotingDistricts?

Changed 3 years ago by liuar

Yes, That's dataset's problem. I will submit the code on behalf of you. Thank you for this enhancement.

Arthur

Changed 3 years ago by liuar

  • status changed from new to closed
  • resolution set to fixed

Changeset [5305] by liuar

Note: See TracTickets for help on using tickets.