forked from kissyteam/kissy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
105 additions
and
50 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/event/sub-modules/dom/sub-modules/touch/tests/manual/tap-penetration.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-touch-fullscreen" content="yes"> | ||
<script src="/kissy/build/seed.js" charset="utf-8"></script> | ||
<script src="/kissy/src/package.js"></script> | ||
<script src="/kissy/src/log.js"></script> | ||
<style> | ||
#upper { | ||
position: absolute; | ||
left:50px; | ||
top:50px; | ||
width:100px; | ||
height: 100px; | ||
border: 1px solid red; | ||
background-color: #ffff00; | ||
} | ||
|
||
#under { | ||
width:200px; | ||
height: 200px; | ||
border: 1px solid green; | ||
background-color: #ffffff; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="under"></div> | ||
<div id="upper"></div> | ||
<script> | ||
KISSY.use('node', function (S, Node) { | ||
var $=Node.all; | ||
$('#upper').on('tap',function(e){ | ||
log('upper '+ e.type); | ||
$(this).hide(); | ||
e.preventDefault(); | ||
}); | ||
$('#upper').on('click',function(e){ | ||
log('upper '+ e.type); | ||
}); | ||
$('#under').on('tap click',function(e){ | ||
log('under '+ e.type); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |