Use double rather than float
double is a built-in type in Dart. float isn't... TBR=eseidel@chromium.org Review URL: https://codereview.chromium.org/968293003
This commit is contained in:
parent
588825a6e1
commit
e69fc6a47d
@ -47,7 +47,7 @@ void stopDots(event) {
|
||||
}
|
||||
|
||||
void runToTheCenter(event) {
|
||||
float radius = (5 + (95 * event.pressure));
|
||||
double radius = (5 + (95 * event.pressure));
|
||||
Element dot = whichDot(event);
|
||||
dot.style["transform"] = "translate(${event.x-radius}px,${event.y-radius}px)";
|
||||
dot.style["width"] = "${2 * radius}px";
|
||||
|
Loading…
x
Reference in New Issue
Block a user