简体   繁体   English

dipatchevent()在IOS中不起作用

[英]dipatchevent() isn't working in IOS

I have recently developed an html5 game using createjs and I am currently in the testing phase. 我最近使用createjs开发了一个html5游戏,目前处于测试阶段。 The game seems to work fine in all the devices except for the iPhone. 该游戏似乎可以在除iPhone之外的所有设备上正常运行。 After careful analysis I have come to a conclusion that the dispatchevent(), I'm employing in the code to run the createjs built-in rollover() function which I'm dispatching using the dispatchevent() isn't working in the IOS.Apart from this the game seems to be doing all the other tasks in the ios just fine. 经过仔细的分析,我得出一个结论,即dispatchevent(),我正在代码中使用它来运行createjs内置的rollover()函数,而我使用dispatchevent()进行调度的功能在IOS中不起作用除此之外,游戏似乎可以在ios中完成所有其他任务。 But since this is the main functionality I'm kind of stuck. 但是,由于这是主要功能,因此我有些固执。 The following is the code snipet where I'm employing the dispatchevent() : 以下是我正在使用dispatchevent()的代码片段:

                              o.dispatchEvent("rollover");

Any suggestions in this regard? 在这方面有什么建议吗?

You need to dispatch events for iphone in seperate. 您需要单独为iPhone调度事件。 So dispatch 2 ee 因此派遣2 ee

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM