CreateJs Canvas的形状在Windows Phone上失去其坐标 [英] CreateJs Canvas's shape losses its co-ordinates on Windows Phone

查看:126
本文介绍了CreateJs Canvas的形状在Windows Phone上失去其坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做一个Createjs和html5项目,其中我正在绘制一个形状(红色圆圈),当我点击它的圆圈它给予警报。它工作正常在所有桌面和Android手机。除了当我在Windows手机中打开这个工作正常屏幕上正常工作,但当我放大屏幕,它失去它的工作,当我点击屏幕上的任何地方(也许在那里的形状的坐标)但不是当我点击形状(圆),,
您的帮助是感谢

am making a Createjs and html5 project in which I am drawing a shape(Red circle), when I click over the circle it gives alert. It works fine on all desktops and android phones. Except when I open this in a windows phone it works fine on the normal screen but when I zoom the screen it loses it working, an alert is shown when I click anywhere on the screen(maybe where the co-ordinates of the shape resides) but not when I click over the shape(Circle),, Your help is appreciated

我的演示版

 <!DOCTYPE html>
    <html>
    <head><title></title>
    <script type="text/javascript" src="createjs-2013.12.12.min.js"></script>
    <script type="text/javascript" src="jquery-1.11.0.min.js"></script>
    <script type="text/javascript">
        function init() {
                var stage = new createjs.Stage("demoCanvas");
                var circle = new createjs.Shape();
                createjs.Touch.enable(stage);
                circle.graphics.beginFill("red").drawCircle(0, 0, 50);
                circle.x = 100;
                circle.y = 100;
                circle.addEventListener("click", function(evt) { /*$("span#log").text(circle.x);*/ alert('clicked'); });
                stage.addChild(circle);
                stage.update();

         }
    </script>
    </head>
    <body onLoad="init();">
        <span id="log"></span>
        <br>
        <canvas id="demoCanvas" width="500" height="300">
            alternate content
        </canvas>

    </body>
    </html>..

这是项目

推荐答案

做这方面的研究大多数,结束我到这一点,这
BUG IE11 。希望Microsoft帮助解决这个问题。

I do alot of Research over this topic, and at the end i came to this point that this the BUG in IE11 . Hope Microsoft helps to solve this.

这篇关于CreateJs Canvas的形状在Windows Phone上失去其坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆