diff --git a/README.md b/README.md index 192edd7..e6fb5a3 100644 --- a/README.md +++ b/README.md @@ -164,4 +164,4 @@ Since Paver is provided as-is and free-of-charge, I am sorry to inform you that | 1.0.0 | May 14, 2015 | Official release | | 1.1.0 | May 16, 2015 |
**Code optimization**: Stored global variables and checks within the `global` variable, removed the need to pass them to individual plugin instances.
**Bug fix**:
**Better demo pages**: Demo pages have been restyled (slightly) and with navigation added.
**Feature addition**: Now you can [declare custom smoothing functions](http://terrymun.github.io/paver/demo/usage-notes.html#custom-smoothing-function). Appropriate documentations have been added/updated to reflec this new feature—and the smoothing functions documentation now comes with beautiful [d3.js](http://d3js.org/) powered graphs, and [MathJax](https://www.mathjax.org/) powered equations.
| -| 1.2.1 | |**Bug fix**: Last known panned position not recorded properly.
+| 1.2.1 | |**Bug fix**: Last known panned position not recorded properly, and buggy horizontal panning due to accidental use of `parseInt()`.
diff --git a/demo/usage-notes.html b/demo/usage-notes.html index 061043b..cf8528f 100644 --- a/demo/usage-notes.html +++ b/demo/usage-notes.html @@ -98,6 +98,13 @@The excess width the panorama must have, in pixels, before Paver kicks in. In other words, this option allows the panorama's computed width to exceed that of its parent container by n
amount of pixels before we allow for panning. Nobody wants a panorama that can barely be panned, which could almost fit in the whole screen, right?
This value should be determined on a case-by-case basis, depending on how wide your panorama container is, but with repeated testing I find 200
to be a good in-between value.
Determines how tilting movement can be translated and smoothed into a panning action. Default option is linear
, but you may choose between gaussian
, cosine
and tangent
. For details of each smoothing function, refer to smoothing functions.
If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.
Governs how often the window resize
event should be fired. Due to intensive computation requirements of each Paver instance, the window resize event has been highly throttled. Afterall, it is the final dimensions of the viewport that matters, not that of during transitional resizing events.
Determines how tilting movement can be translated and smoothed into a panning action. Default option is linear
, but you may choose between gaussian
, cosine
and tangent
. For details of each smoothing function, refer to smoothing functions.
If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.
Determines how tilting movement can be translated and smoothed into a panning action. Default option is gaussian
, but you may choose between linear
, cosine
and tangent
. For details of each smoothing function, refer to smoothing functions.
If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.
Determines how tilting movement can be translated and smoothed into a panning action. Default option is gaussian
, but you may choose between linear
, cosine
and tangent
. For details of each smoothing function, refer to smoothing functions.
If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.
Note: in mathematical terms, square brackets is the representation of the concept "inclusive of", i.e. $[-1,1]$ is inclusive of $-1$ and $1$, or $-1 \le n \le 1$.
The simplest of all, this function simply transforms $x$ linearly, from its original range of $[-1,1]$, to $f(x)$ with a range of $[0,1]$. This is the default smoothing function (a misnomer, actually, since it is not smoothing anything) for cursor position.
This function transforms $x$ in the range of $[-1,1]$ via a tangent function. Since the transformation of the tangent curve is imprecise and only down to three decimal places, the range of $f(x)$ lies approximately between $[0,1]$.