bug: Deprecated warning on Chrome
Type: bug
Platform: desktop browser
Occasionally I see this warning on Chrome Version 45.0.2454.46 beta (64-bit) running on OSX 10.10.4.
'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead. ionic.bundle.js:1162
Update: Sometimes (often) I just need to explain problems to get unblocked. Turns out that this was an obvious error on my part—ng-controller wasn't specified for my header-bar element. Derp.
@mhartington I just ran into this error when trying to call an ng-click on a button in ion-header-bar—and it's a problem for me because I'm using $state to route the user to another view and the click event is not propagating.
I'm following up on this thread because I'm unsure if the error is due the code I wrote, Ionic, or any dependencies.
This is the error, which you're familiar with:
'webkitMovementX' is deprecated. Please use 'movementX' instead. ionic.bundle.js:1162
'webkitMovementY' is deprecated. Please use 'movementY' instead. ionic.bundle.js:1162
This is my markup:
<ion-header-bar class="bar-stable">
<button class="button button-icon icon ion-person" ng-click="logUserOut()">
</button>
<h1 class="title">Title</h1>
</ion-header-bar>
When I click on the button, the logUserOut() never fires. I've tried putting a logging statement and nothing shows in the console. When I use this function as an ng-click elsewhere in the view, it works fine.
This is the code the function calls:
$scope.logUserOut = function() {
$state.go('login');
};
Appreciate any clarification you might provide on this issue :)
P.S. I'm building my first Ionic project for my bloc.io bootcamp capstone and I'm loving your framework and all the supporting tools (the marketplace is great). Keep up the great work!
I'd like to add that I was having an issue with on-hold and getting these warnings. Found this issue post and did helped me at some clues about where to look, but this error and warnings ocurred only testing my app on Samsung devices. After some search I've found that adding overflow-scroll=false at <ion-content> to solve the issue.
My specific issue was that on-hold was working for the default time but i was unable to let the user holding the button for longer than the default time for long-press, forcing the app to run on-release even if the user was still holding the button.
just adding here if someone have the same issue and search around here. :)
I have the warning "SVG's SMIL animations....." when I add <ion-spinner> in $ionicLoading template
Still getting the warnings,
this solves it:
if (key == 'webkitMovementX' || key == 'webkitMovementY') {
continue;
}
Add the above code in Ionic.bundle.js on line 1173. Final code see below. Use at own risk.
extend: function extend(dest, src, merge) {
for (var key in src) {
if(dest[key] !== undefined && merge) {
continue;
}
if (key == 'webkitMovementX' || key == 'webkitMovementY') {
continue;
}
dest[key] = src[key];
}
return dest;
}
I am having the same warning when I am clicking on a button that has a functionality of popover menu in the navigation bar. Unfortunately popover functionality is not working at this place, don't know why. I have implemented the same functionality in other screen as well and its working fine with no warning.

Above screen shows the warning and popover menu is not coming.

In this screen everything is working with no errors/warning.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.