# Babylon js is not working on Mi Browser

**URL:** <https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103>\
**Category:** Bugs\
**Created:** [January 26, 2022, 8:01am UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103 "2022-01-26T08:01:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Ksi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/paul_ksi/32/17431_2.png) [@Paul\_Ksi](https://forum.babylonjs.com/u/Paul_Ksi)\
**Post date:** [January 26, 2022, 8:01am UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/1 "2022-01-26T08:01:10Z")

</div>

Babylon js not working on Xiaomi phone, Mi Browser, what might be the reason?

basically nothing works from playground, it turns on but the touchscreen controls not working, nor this example nor basic, something prevents touch events, i need this 360 dome example to be operational  
[https://playground.babylonjs.com/#14KRGG#3](https://playground.babylonjs.com/#14KRGG#3)

for example in the demos section this example works  
[http://sebodeweb.ir/3dshow/es01.html](http://sebodeweb.ir/3dshow/es01.html)

Thank you!

---

<div class="post-metadata">

**Author:** ![qqqzhch](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qqqzhch](https://forum.babylonjs.com/u/qqqzhch)\
**Post date:** [January 26, 2022, 11:14am UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/2 "2022-01-26T11:14:06Z")

</div>

On mobile phones, such as wechat, smaller pictures or models are needed, otherwise rendering will crash  
Single picture shall not be greater than 2m

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [January 26, 2022, 12:46pm UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/3 "2022-01-26T12:46:06Z")

</div>

What are the browser’s capabilities? does it fully support webgl? 1? 2?

Is it based on a different open source projects (i.e. chromium, for example)?

---

<div class="post-metadata">

**Author:** ![Paul\_Ksi](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/paul_ksi/32/17431_2.png) [@Paul\_Ksi](https://forum.babylonjs.com/u/Paul_Ksi)\
**Post date:** [January 26, 2022, 4:36pm UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/4 "2022-01-26T16:36:52Z")

</div>

not sure about capabilieties, its not crashing, its loading fine just touch controls are disabled for some reason

[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/9/89b97a9b0dfb6705bbd3c9dc028fb7cba24b202b.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/9/89b97a9b0dfb6705bbd3c9dc028fb7cba24b202b.mp4)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [January 26, 2022, 8:31pm UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/5 "2022-01-26T20:31:26Z")

</div>

Just checking, does it work on any other browser on your phone?

I’m digging around to see if the Mi Browser has anything different and it seems that they don’t have support for pointer events (on this day and age…)?

> <https://stackoverflow.com/questions/68096059/openlayers-no-touch-events-on-webkit-browsers>

I prepared a simple playground to detect if your browser supports pointer events, please take a look: [Babylon.js Playground](https://playground.babylonjs.com/#YY830S)  
If it doesn’t, you’ll have to add a Polyfill for it, like PEP: [GitHub - jquery-archive/PEP: Pointer Events Polyfill: a unified event system for the web platform](https://github.com/jquery-archive/PEP)

---

<div class="post-metadata">

**Author:** ![brianzinn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brianzinn/32/28013_2.png) [@brianzinn](https://forum.babylonjs.com/u/brianzinn)\
**Post date:** [January 26, 2022, 8:52pm UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/6 "2022-01-26T20:52:23Z")

</div>

I don’t see that browser on caniuse, but curious if touch-action is supported:  
[“touch-action” | Can I use… Support tables for HTML5, CSS3, etc](https://caniuse.com/?search=touch-action)

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [January 27, 2022, 12:07am UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/7 "2022-01-27T00:07:19Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/issues/5674>
>
> I just spent an hour trying to figure out why my ArcRotateCamera was not working… with touch input on iOS. Even the official playground example: https://www.babylonjs-playground.com/#12WBC#69 did work as long as I used the playground. Downloading the .zip and using the generated \`index.html\` broke the functionality.
> 
> Eventually I figured out the canvas needs to have the attribute \`touch-action="none"\` to make it work. Since I couldn't find it anywhere in the documentation, please consider adding it to save other users from pulling their hair out and wasting time :) Thanks!

Perhaps related.

---

<div class="post-metadata">

**Author:** ![jeremy-coleman](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jeremy-coleman/32/15493_2.png) [@jeremy-coleman](https://forum.babylonjs.com/u/jeremy-coleman)\
**Post date:** [January 27, 2022, 12:33am UTC](https://forum.babylonjs.com/t/babylon-js-is-not-working-on-mi-browser/27103/8 "2022-01-27T00:33:45Z")

</div>

I just looked for a while but couldnt find an example, but ive seen many games include some asian brand specific fix for touch events.
