Skip to content

Commit 06d98f0

Browse files
committed
change click event to mousedown
1 parent fed9706 commit 06d98f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-wtpbox",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"main": "src/pbox.js",
55
"dependencies": {
66
"angular": "~1.2.25",

src/pbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@
247247

248248
BoxModal.prototype._bindEvents = function () {
249249
var _self = this;
250-
_self._pboxElement.bind("click.pbox",function(e){
250+
_self._pboxElement.bind("mousedown.pbox",function(e){
251251
e.stopPropagation();
252252
});
253-
$document.bind("click.pbox" + this._id, function (e) {
253+
$document.bind("mousedown.pbox" + this._id, function (e) {
254254
var _eTarget = angular.element(e.target);
255255
if (util.hasClass(_eTarget, 'pbox')) {
256256
return;

0 commit comments

Comments
 (0)