Revert "pixelate: respond to touch events"

This reverts commit 52502148ca.
This commit is contained in:
zotlabs 2019-07-30 21:36:06 -07:00
parent 52502148ca
commit 717587762b
3 changed files with 3 additions and 20 deletions

View file

@ -1,5 +1,5 @@
ZAP ZAP
=== ===
Zap is an open source decentralised social network with more privacy and less drama. Zap is an open source decentralised social network with more privacy and less drama.

View file

@ -90,14 +90,6 @@
ctx.drawImage(element, 0, 0, imgWidth, imgHeight); ctx.drawImage(element, 0, 0, imgWidth, imgHeight);
}); });
canv.addEventListener('touchstart', function () {
if (revealed) {
return;
}
ctx.drawImage(element, 0, 0, imgWidth, imgHeight);
});
canv.addEventListener('mouseleave', function () { canv.addEventListener('mouseleave', function () {
if (revealed) { if (revealed) {
return; return;
@ -106,16 +98,7 @@
ctx.drawImage(element, 0, 0, width, height); ctx.drawImage(element, 0, 0, width, height);
ctx.drawImage(canv, 0, 0, width, height, 0, 0, canv.width, canv.height); ctx.drawImage(canv, 0, 0, width, height, 0, 0, canv.width, canv.height);
}); });
}
canv.addEventListener('touchend', function () {
if (revealed) {
return;
}
ctx.drawImage(element, 0, 0, width, height);
ctx.drawImage(canv, 0, 0, width, height, 0, 0, canv.width, canv.height);
});
}
}; };
if (typeof $ === 'function') { if (typeof $ === 'function') {

View file

@ -13,7 +13,7 @@ head_add_js('/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js');
head_add_js('/library/bootbox/bootbox.min.js'); head_add_js('/library/bootbox/bootbox.min.js');
head_add_js('/library/bootstrap-tagsinput/bootstrap-tagsinput.js'); head_add_js('/library/bootstrap-tagsinput/bootstrap-tagsinput.js');
head_add_js('/library/datetimepicker/jquery.datetimepicker.js'); head_add_js('/library/datetimepicker/jquery.datetimepicker.js');
head_add_js('/library/pixelate.js/dist/pixelate.js'); head_add_js('/library/pixelate.js/pixelate.min.js');
head_add_js('/library/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js'); head_add_js('/library/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js');