مرحبًا ، أولاً وقبل كل شيء ، شكرًا على المكتبة الرائعة.
Pixi مذهل ، لا أطيق الانتظار حتى يخرج v5!
الآن ، لقد واجهت مشكلة.
لا يمكنني تمرير لوحة الرسم باستخدام شريط تمرير الهاتف المحمول.
أنا أستخدم الإصدار ^ 4.7.1
هذا هو الكود الخاص بي
this.App = new Application(
Math.min(window.innerWidth, window.screen.width),
Math.min(window.innerHeight, window.screen.height),
{
backgroundColor: `0x${backgroundColor}`,
resolution: window.devicePixelRatio
}
);
this.App.renderer.plugins.interaction.autoPreventDefault = false; // notice that after adding this line still can't have scroll work.
this.App.renderer.autoResize = true;
this.App.renderer.plugins.interaction.autoPreventDefault = false;
this.App.renderer.view.style.touchAction = 'auto';
rockmandash renderer.view.style.touchAction = 'auto';
فعل الحيلة لي!
هل هذا موثق في مكان ما ؟! يبدو أن pixi تضع قاعدة css هذه ( touch-action
) ، على عنصر لوحة الرسم نفسه؟
تم قفل سلسلة الرسائل هذه تلقائيًا نظرًا لعدم وجود أي نشاط حديث بعد إغلاقه. الرجاء فتح قضية جديدة للأخطاء ذات الصلة.
التعليق الأكثر فائدة