I use the ng-mousedown
and ng-mouseup
I'm trying to concert, though ng-mousedown
is firing twice and not firing ng-mouseup
. For example, instead of moving down the press to increase due to counts
, and instead of going down on the press release, there are two reasons:
& lt; ! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body ng-app & gt; & Lt; Div & gt; & Lt; Div style = "background-color: blue; width: 80px;" Ng-mousedown = "count = count + 1" ng-mouseup = "count = count - 1" ng-init = "count = 0" & gt; Click me & lt; / Div & gt; & Lt; Div & gt; {{Counts}} & lt; / Div & gt; & Lt; / Div & gt; & Lt; Script src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;
If I change the Conneri version to 1.1.1 then it works as expected whether I am doing something wrong or is it a bug in angular? I've tested in Chrome and Firefox, it works in Firefox, but not Chrome.
Update: After further testing, it appears that it can only fail to work in Chrome on Linux 64. So it's a bug chrome.
No comments:
Post a Comment