diff --git a/examples/touch-demo.sky b/examples/touch-demo.sky
index bd40642a16..7644d0c403 100644
--- a/examples/touch-demo.sky
+++ b/examples/touch-demo.sky
@@ -4,10 +4,11 @@
Ready!
@@ -46,8 +47,12 @@ void stopDots(event) {
}
void runToTheCenter(event) {
- whichDot(event).style["transform"] =
- "translate(${event.x-50}px,${event.y-50}px)";
+ float 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";
+ dot.style["height"] = "${2 * radius}px";
+ dot.style["border-radius"] = "${radius}px";
}
void main() {