Hi Jon,

Glad it's working for you.

A modified version of  timeline-bundle.js is not much help to people. It's the 
updated sources that are valuable. 

That said, your investigation is very helpful since it sounds like everything 
is working as you want it with just the change from mousedown to mouseover.

Please file an RFE / Issue using the issue tracker. Include your email (below) 
in the body of the issue. As I siad in the previous email, others have asked 
for this too.

Thanks for your time on it,

Larry



________________________________
From: Jon Bell <[email protected]>
To: SIMILE Widgets <[email protected]>
Sent: Friday, March 13, 2009 1:39:06 AM
Subject: Re: Rollover Bubbles in Timeline?


OK, like I said my knowledge of javascript is very limited, but in my
poking around and trial and error I think I may have figured it out.
I'm not sure about the impact on performance, but I've gotten the
mouseover popup working.

I'm actually not even sure if I'm using the original files since my
friend sent them along to me to work on, but when I changed the
"mousedown"s in the painter javascript files it didn't seem to have
any effect.  Then I changed all of them in the timeline-bundle.js file
and the mouseover bubble popped up, but it also changed scrolling to
be mousover. So I then found the mousedowns that were tied to the
scrolling (on lines 37 and 218. see below) and left those alone while
changing all others to mouseovers.

Would it be helpful if i posted my files somewhere? here are the two
places in the file that I didn't change "mousedown" to "mouseover"

lines 37-42 of timeline-bundle.js. Leave the two "mousedown"s here
alone
SimileAjax.DOM.registerEventWithObject
(this._div,"mousedown",this,"_onMouseDown");
SimileAjax.DOM.registerEventWithObject
(this._div,"mousemove",this,"_onMouseMove");
SimileAjax.DOM.registerEventWithObject
(this._div,"mouseup",this,"_onMouseUp");
SimileAjax.DOM.registerEventWithObject
(this._div,"mouseout",this,"_onMouseOut");
SimileAjax.DOM.registerEventWithObject
(this._div,"dblclick",this,"_onDblClick");
var F=this._theme!=null?this._theme.mouseWheel:"scroll";

lines 218-221 of timeline-bundle.js. Leave this "MouseDown" alone as
well.
Timeline._Band.prototype._onMouseDown=function(B,A,C){this.closeBubble
();
this._dragging=true;
this._dragX=A.clientX;
this._dragY=A.clientY;

On Mar 12, 3:03 pm, Larry Kluger <[email protected]> wrote:
> Hi Jon,
>
> Welcome to Timeline.
>
> Re: roll-over bubbles -- it's definately do-able, but I haven't done it.
>
> I'd look at changing the methods in original-painter that add the "mousedown" 
> listeners to the event divs on the bands.
> Change them to "mouseover".
>
> Unfortunately, the listeners are currently added throughout the painter code. 
> So you could start your investigation with just one type of event. Eg 
> duration events or precise instant events.
>
> If all that is needed is to change the event to mouseover, that would be 
> interesting news.
> But you may need to change the listeners to have additional checks about what 
> they should do when they are fired.
>
> Remember that you'll get a stream of mouseover events--you need to quickly 
> discard the duplicated events since you'll want to maintain good performance.
>
> I think the UI would be very good for many people--so I encourage you to work 
> up an example and we can then get it into the trunk.
>
> Please ask if you need further help while you're investigating this.
>
> Regards,
>
> Larry
>
> ________________________________
> From: Jon Bell <[email protected]>
> To: SIMILE Widgets <[email protected]>
> Sent: Thursday, March 12, 2009 4:34:51 PM
> Subject: Rollover Bubbles in Timeline?
>
> Hi,
>
> I've just started using the timeline, and I don't know too much
> javascript but I'm trying to customize it. I've changed the colors of
> the timeline and figured out how to use other images as markers, but I
> would prefer if the bubbles popped up when you rolled over the mouse
> rather than when you click on the event. Is that possible and
> relatively easy to accomplish? Thanks in advance.
>
> Jon Bell

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to