Skip to content

Commit

Permalink
fix ie11 pointer event. Fixes #574
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Aug 20, 2014
1 parent a57a5c7 commit 761528d
Show file tree
Hide file tree
Showing 4 changed files with 311 additions and 294 deletions.
4 changes: 2 additions & 2 deletions build/component/control-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions build/component/control.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2014, KISSY v1.47
MIT Licensed
build time: Aug 18 12:19
build time: Aug 20 14:23
*/
/*
Combined processedModules by KISSY Module Compiler:
Expand Down Expand Up @@ -558,7 +558,8 @@ KISSY.add("component/control", ["node", "./control/process", "component/manager"
if(self.get("focusable")) {
self.focus()
}
if(!self.get("allowTextSelection") && ev.originalEvent.type.toLowerCase().indexOf("mouse") !== -1) {
var type = ev.originalEvent.type.toLowerCase();
if(!self.get("allowTextSelection") && (type.indexOf("mouse") !== -1 || type.indexOf("pointer") !== -1)) {
n = ev.target.nodeName;
n = n && n.toLowerCase();
if(n !== "input" && n !== "textarea" && n !== "button") {
Expand Down
Loading

0 comments on commit 761528d

Please sign in to comment.