Search and Top Navigation
#9214 closed bug (notabug)
Opened April 07, 2013 05:24PM UTC
Closed April 08, 2013 12:14PM UTC
Track does not work when manually opening Tooltip
Reported by: | mattblang | Owned by: | mattblang |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.tooltip | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If I try to manually spawn a Tooltip using
.tooltip("open")
after I have initialized with
track: true
the mouse tracking will not work.
Also see this fiddle.
Attachments (0)
Change History (3)
Changed April 07, 2013 06:18PM UTC by comment:1
owner: | → mattblang |
---|---|
status: | new → pending |
Changed April 07, 2013 06:30PM UTC by comment:2
_comment0: | Hello TJ! \ \ I am using jQuery UI for my interface on a WebGL project. Since the entire screen is a HTML5 canvas, I was hoping I could test for object intersection and display tooltips when certain interactions in the WebGL project occur (such as mousing over a planet). → 1365359515964963 |
---|---|
_comment1: | Hello TJ! \ \ I am using jQuery UI for my interface on a WebGL project. Since the entire screen is a HTML5 canvas, I was hoping I could test for object intersection and display Tooltips when certain interactions in the WebGL project occur (such as mousing over a planet). \ \ I don't exactly need to create the Tooltip on hover. I was just setting that up as a simple use case. I just need to be able to manually open the tooltip with mouse track working correctly. → 1365359709035865 |
_comment2: | Hello TJ! \ \ I am using jQuery UI for my interface on a WebGL project. Since the entire screen is a HTML5 canvas, I was hoping I could test for object intersection and display Tooltips when certain interactions in the WebGL project occur (such as mousing over a planet). \ \ I don't exactly need to create the Tooltip on hover. I just set that up as a simple use case. I just need to be able to manually open the Tooltip with mouse track working correctly. → 1365385383120698 |
status: | pending → new |
Hello TJ!
I am using jQuery UI for my interface on a WebGL project. I was hoping I could test for object intersection in WebGL and display Tooltips when certain interactions occur (such as mousing over a planet sphere). The Tooltip would need to be attached to the HTML5 canvas, which takes up the entire screen.
I don't need to create the Tooltip on hover. I just set that up as a simple use case. I need to be able to manually open the Tooltip with mouse track working correctly.
Changed April 08, 2013 12:14PM UTC by comment:3
resolution: | → notabug |
---|---|
status: | new → closed |
This is working as intended. Tracking tooltips only apply when the opening is caused by the pointer. Even without manually opening a tooltip, if a tracking tooltip is opened via focus, it won't track.
You'll need to implement the tracking logic yourself, though it's a bit tricky to get right.
Hi mattblang,
Thanks for taking the time to contribute to the jQuery UI project. I see the behavior you're describing, here's an updated test case against master: http://jsfiddle.net/tj_vantoll/kHYdf/.
That being said this is a very strange use case because you are creating the tooltip on hover of the element itself, whereas normally you'd just want the tooltip to be setup before the element is hovered over. If you just want to update the content you can do that with the content option. Here's an example of that: http://jsfiddle.net/tj_vantoll/VBNeS/.
Is there a reason you need to create the tooltip on hover?