Re: [DOM3 Events] Error between float vs. double of WheelEvent

On 3/17/12 9:57 PM, Masayuki Nakano wrote:
> E.g., following function returns false when I defined them as float.
>
> function () {
> var event = new WheelEvent("wheel", { deltaX: 1.0 });
> return (event.deltaX == 1.0);
> }
>
> because the deltaX becomes 1.000000xxxxxxxxx (x means random number) by
> the error.

The actual testcase in the bug has 0.1, not 1.0, so the behavior is 
"expected", sorta....

-Boris

Received on Monday, 19 March 2012 01:07:10 UTC