0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

Prevent magnifying glass from appearing on iPad.

Cancel wordart on click/tap outside dialog popup.
This commit is contained in:
Wouter R 2014-01-15 17:52:30 +01:00
parent 97201587c0
commit e8c9932014
2 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,8 @@
var onTouchStart = function(e) { var onTouchStart = function(e) {
updateCursor(e); updateCursor(e);
startDownTimer(); startDownTimer();
$(element).trigger("onButtonClick",{x:_x,y:_y});
e.preventDefault();
} }
var onTouchEnd = function(e) { var onTouchEnd = function(e) {

View File

@ -8,11 +8,13 @@ function initWordArt() {
function showWordArtDialog() { function showWordArtDialog() {
buttonGroupAdd.hide(); buttonGroupAdd.hide();
showPopup(popupWordArt); showPopup(popupWordArt);
$("#popupMask").bind("click", onWordArtCancel);
$("#txtWordArt").focus(); $("#txtWordArt").focus();
$("#txtWordArt").val(""); //clear textbox $("#txtWordArt").val(""); //clear textbox
} }
function onWordArtCancel() { function onWordArtCancel() {
$("#popupMask").unbind("click");
hidePopup(popupWordArt); hidePopup(popupWordArt);
} }