Guys:
For some unknown reason, I can only get timeline_start and timeline_stop to
work properly if the dates are of the form
theme.timeline_start = new Date("Jan 1 2000 00:00:00 GMT-0500").
Using plain strings, or even Date.UTC (like Steve, above) caused all
scrolling to stop completely.
I don't really have the time to dig into the code to find out why, but it
seems like the date format for timeline_start and timeline_stop has to
match the formats use for the zones and hotspots. In other words, it looks
like the scrolling code doesn't use a standard internal format for dates
when handling timeline_start and timeline_stop -- but that's just
speculation so far.
Josh
On Thursday, 24 May 2012 15:34:27 UTC-4, SteveP wrote:
>
> Thanks for the response Mike! That worked.
>
> At first I was using this form for start/stop:
>
> theme.timeline_start = "Jan 1 2000 00:00:00 GMT";
>
> Then switched to this per instructions in the wiki
>
> theme.timeline_start = new Date(Date.UTC(2000,01,01));
>
> Both of which caused the issues I described previously. Should have just
> kept it simple :)
>
> steve
>
> On Thu, May 24, 2012 at 12:23 PM, Michael Nosal <[email protected]<javascript:>
> > wrote:
>
>> If you set .timeline_start, you should also set .timeline_stop as well,
>> or set stop to a date far in the future.
>> I've noticed buggy behavior if I specify start and stop is null. I've
>> tested on Chrome/Mac with Timeline 2.3.1 and it is working as expected.
>>
>> It should look like this:
>> var theme = Timeline.ClassicTheme.create();
>> theme.event.bubble.width = 320;
>> theme.event.bubble.height = 220;
>> theme.timeline_start = new Date("Jan 1 1840");
>> theme.timeline_stop = new Date("Jan 1 1950");
>>
>> --Mike
>>
>>
>> On May 23, 2012, at 4:48 PM, Derek J. Balling wrote:
>>
>> > If I set theme.timeline_start and theme.timeline_stop, I can't scroll
>> at all. [Chrome] :-/
>> >
>> > D
>>
>> --
>> 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]<javascript:>
>> .
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>.
>> For more options, visit this group at
>> http://groups.google.com/group/simile-widgets?hl=en.
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.