[Laszlo-user] Animation problem

Henry Minsky henry.minsky at gmail.com
Fri Apr 15 08:17:24 PDT 2005


Try this, use an embedded font for the text, and force the y offset of
the whole view  to an integer

y="${Math.floor(this.offset)}"

I don't know why the icons have jitter, there is something about
subpixel placement
that is getting rounded internally or something. 


On 4/15/05, Geert Bevin <gbevin at uwyn.com> wrote:
> That makes no difference, the icons still jitter.
> 
> On 15 Apr 2005, at 16:48, Henry Minsky wrote:
> 
> > I think you may need to use an embedded font, for both the plaintext
> > and bold text.
> > The device fonts don't seem to be able to position themselves with
> > sub-pixel resolution, so they seem to jump.
> >
> >
> >
> > On 4/15/05, Geert Bevin <gbevin at uwyn.com> wrote:
> >
> >>
> >> On 15 Apr 2005, at 16:15, David Temkin wrote:
> >>
> >>
> >>> It actually looks pretty good to me. I see the jitter but it's very
> >>> subtle.
> >>>
> >>
> >> Yeah, it's subtle, but the customer saw it and already asked to fix
> >> it before going online with it.
> >>
> >>
> >>> Bret, Adam -- what do you think is going on here?
> >>>
> >>> - D.
> >>>
> >>>
> >>>
> >>>
> >>>> From: Geert Bevin <gbevin at uwyn.com>
> >>>> Date: Fri, 15 Apr 2005 12:28:39 +0200
> >>>> To: <hqm at alum.mit.edu>, OpenLaszlo user community discussion
> >>>> <laszlo-user at openlaszlo.org>, David Temkin
> >>>> <temkin at laszlosystems.com>
> >>>> Subject: Re: [Laszlo-user] Animation problem
> >>>>
> >>>> Any more info about this? I need to put this online for a customer
> >>>> soon.
> >>>>
> >>>> ----
> >>>>
> >>>> The source is here:
> >>>> http://uwyn.com/nustraks.lzx
> >>>>
> >>>> LPS 3.0b2, using device fonts. Same problem with embedded fonts.
> >>>>
> >>>> On 13 Apr 2005, at 23:15, Henry Minsky wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> Is this using LPS 2.2 or 3.0? Using embedded fonts or device
> >>>>> fonts?
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 4/13/05, Geert Bevin <gbevin at uwyn.com> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> I set them manually on every text and every view that's
> >>>>>> scrolled, and
> >>>>>> nothing changes.
> >>>>>>
> >>>>>> On 13 Apr 2005, at 22:54, David Temkin wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Do any of these views (the text views) have the pixellock
> >>>>>>> attribute
> >>>>>>> set? If
> >>>>>>> some do (the text) and some don't (the images) this could be the
> >>>>>>> source of
> >>>>>>> the problem...
> >>>>>>>
> >>>>>>> - D.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> From: Geert Bevin <gbevin at uwyn.com>
> >>>>>>>> Reply-To: OpenLaszlo user community discussion <laszlo-
> >>>>>>>> user at openlaszlo.org>
> >>>>>>>> Date: Wed, 13 Apr 2005 14:39:08 +0200
> >>>>>>>> To: OpenLaszlo user community discussion <laszlo-
> >>>>>>>> user at openlaszlo.org>
> >>>>>>>> Subject: [Laszlo-user] Animation problem
> >>>>>>>>
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>> I'm making a very simple scrolling animation, the result can be
> >>>>>>>> seen
> >>>>>>>> here:
> >>>>>>>> http://tv-2weken.be/nustraks.swf
> >>>>>>>>
> >>>>>>>> All I do is this scrollable view that contains the content:
> >>>>>>>> <view width="$once{parent.width}" datapath="nustraks:/nustraks
> >>>>>>>> [1]"
> >>>>>>>> y="${this.offset}" onmouseover="this.scroll.pause(true)"
> >>>>>>>> onmouseout="this.scroll.pause(false)">
> >>>>>>>> with this animator:
> >>>>>>>> <animator name="scroll" attribute="offset" from="${0}" to="$
> >>>>>>>> {-1*
> >>>>>>>> (parent.height/2)}" motion="linear" duration="15000"
> >>>>>>>> repeat="Infinity"/>
> >>>>>>>>
> >>>>>>>> As you can see, the icons jump slightly up and down during
> >>>>>>>> scrolling
> >>>>>>>> and aren't totally in sync with the text. How can I fix this? I
> >>>>>>>> want
> >>>>>>>> it to be totally smooth and in sync.
> >>>>>>>>
> >>>>>>>> Thanks for the help,
> >>>>>>>>
> >>>>>>>> Geert
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Geert Bevin                       Uwyn bvba
> >>>>>>>> "Use what you need"               Avenue de Scailmont 34
> >>>>>>>> http://www.uwyn.com               7170 Manage
> >>>>>>>> gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03
> >>>>>>>> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F
> >>>>>>>> D6A9
> >>>>>>>> Public PGP key  : available at servers pgp.mit.edu,
> >>>>>>>> wwwkeys.pgp.net
> >>>>>>>>
> >>>>>>>> _______________________________________________
> >>>>>>>> Laszlo-user mailing list
> >>>>>>>> Laszlo-user at openlaszlo.org
> >>>>>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> Laszlo-user mailing list
> >>>>>>> Laszlo-user at openlaszlo.org
> >>>>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Geert Bevin                       Uwyn bvba
> >>>>>> "Use what you need"               Avenue de Scailmont 34
> >>>>>> http://www.uwyn.com               7170 Manage
> >>>>>> gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03
> >>>>>> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F
> >>>>>> D6A9
> >>>>>> Public PGP key  : available at servers pgp.mit.edu,
> >>>>>> wwwkeys.pgp.net
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Laszlo-user mailing list
> >>>>>> Laszlo-user at openlaszlo.org
> >>>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Henry Minsky
> >>>>> Software Architect
> >>>>> hminsky at laszlosystems.com
> >>>>>
> >>>>> _______________________________________________
> >>>>> Laszlo-user mailing list
> >>>>> Laszlo-user at openlaszlo.org
> >>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> --
> >>>> Geert Bevin                       Uwyn bvba
> >>>> "Use what you need"               Avenue de Scailmont 34
> >>>> http://www.uwyn.com               7170 Manage
> >>>> gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03
> >>>>
> >>>> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F
> >>>> D6A9
> >>>> Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >> --
> >> Geert Bevin                       Uwyn bvba
> >> "Use what you need"               Avenue de Scailmont 34
> >> http://www.uwyn.com               7170 Manage
> >> gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03
> >> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
> >> Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
> >>
> >> _______________________________________________
> >> Laszlo-user mailing list
> >> Laszlo-user at openlaszlo.org
> >> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >>
> >>
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > hminsky at laszlosystems.com
> >
> > _______________________________________________
> > Laszlo-user mailing list
> > Laszlo-user at openlaszlo.org
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >
> >
> 
> --
> Geert Bevin                       Uwyn bvba
> "Use what you need"               Avenue de Scailmont 34
> http://www.uwyn.com               7170 Manage
> gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03
> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
> Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
> 
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> 


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scroll.lzx
Type: application/octet-stream
Size: 8176 bytes
Desc: not available
Url : http://openlaszlo.org/pipermail/laszlo-user/attachments/20050415/9cd44c7a/scroll-0001.obj


More information about the Laszlo-user mailing list