Index: tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
index d48febb6e90dc77f0406739775d65c0a13a3dd99..ce970626f3c9d1e54d5df7ce38f58947704faa8e 100644 |
--- a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
+++ b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate |
@@ -69,7 +69,7 @@ $!MEMBERS |
'offsetX is only supported on elements'); |
} |
Element target = this.target; |
- return (this.client - target.getBoundingClientRect().topLeft).toInt(); |
+ return (this.client - target.getBoundingClientRect().topLeft).truncate(); |
} |
} |