Closed wclr closed 4 years ago
Normalizing coordinate to integer value solves the severe blurry effect issue, though it solved not completely comparing to using left/top
, the animation moment still comes along with some blurry effect.
The reason that drop left / top
implementation in v2 is performance and users do not have to bear the burden of additional configuration, as you mentioned, you can use beforeTranslate
hook to normalize coordinate to integer value to solve your troubles
Ok, but still the effect on the desktop is a little bit different.
@theniceangel
I would encourage you to reconsider this, and an option to transform position using left/top as iscroll
does. Maybe you could do it plugable. I have to rollback to iscroll
, because the visual effect of blurring in webkit based browsers on windows are barely acceptable. Normalizing coors doesn't save.
In iScroll there was an option
useTransform
which made iScroll useleft
/top
props instead oftransform/translate
. So it is not implemented, wonder why? It is really useful on desktop browsers for example on windows where chrome/firefox while css translating is blurring the content, and whenleft/top
are used content is not blurred. Desktop performance usually is not suffering, but the visual effect is much better.I tried to implement it using
beforeTranslate
hook, but it allows only to affecttransform
style. And using hacky method like:doesn't seem to work well.