Traccar web Firefox 56.0.2 Problem

Eugen R7 years ago
unreachable code after return statement[Weitere Informationen]  ext-all.js:22:366125
downloadable font: kern: Too large subtable (font-family: "Open Sans" style:normal weight:300 stretch:normal src index:0) source: https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/classic/theme-triton/resources/fonts/OpenSans-Light.ttf  theme-triton-all_2.css:1:141006
downloadable font: Table discarded (font-family: "Open Sans" style:normal weight:300 stretch:normal src index:0) source: https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/classic/theme-triton/resources/fonts/OpenSans-Light.ttf  theme-triton-all_2.css:1:141006
downloadable font: kern: Too large subtable (font-family: "Open Sans" style:normal weight:normal stretch:normal src index:0) source: https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/classic/theme-triton/resources/fonts/OpenSans-Regular.ttf  theme-triton-all_2.css:1:141222
downloadable font: Table discarded (font-family: "Open Sans" style:normal weight:normal stretch:normal src index:0) source: https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/classic/theme-triton/resources/fonts/OpenSans-Regular.ttf  theme-triton-all_2.css:1:141222
unreachable code after return statement[Weitere Informationen]  ext-all.js:22:366125

Button Login with mouse click no function but with enter key.
Register Button no function
Mainview: Button Settings no function

with Chrome no Problem.

Cache cleared

traccar -v 3.14

does anyone have the same problems?

Many Thanks

Anton Tananaev7 years ago

I have just tested on Firefox 56.0.2 and it works fine for me. No issues with login or register buttons.

Eugen R7 years ago

Hi, thanks for feedback.
I researched a bit.
there are problems with firefox if you have a touchscreen.
here can you read about:
https://www.codesd.com/item/classic-6-2-extjs-does-not-work-with-firefox-and-a-touch-screen.html

Anton Tananaev7 years ago

I can't really test it because I don't have a device with touchscreen, but feel free to send a pull request with the fix.

Alex7 years ago

Firefox 56.0.2 (64) - everything is working

Eugen R7 years ago

just tested. if I disable touchscreen then it works

Eugen R7 years ago

https://drive.google.com/open?id=1fV47D15ejmiqoNvoAOTBv9Pr8MMOBIbv

Here the problem is eliminated. works great with firefox.
Also this problem with checkbox too:
https://www.traccar.org/forums/topic/how-to-link-device-to-geofence-non-admin-user/

Many Thanks Anton for your Traccar

@Anton
maybe update this?
https://cdnjs.cloudflare.com/ajax/libs/extjs/6.2.0/ext-all.js

At the end just add that

Ext.define('Mb.override.dom.Element',{override:'Ext.dom.Element'},function(){varadditiveEvents=this.prototype.additiveEvents,eventMap=this.prototype.eventMap;if(Ext.supports.TouchEvents&&Ext.firefoxVersion>=52&&Ext.os.is.Desktop){eventMap['touchstart']='mousedown';eventMap['touchmove']='mousemove';eventMap['touchend']='mouseup';eventMap['touchcancel']='mouseup';eventMap['click']='click';eventMap['dblclick']='dblclick';additiveEvents['mousedown']='mousedown';additiveEvents['mousemove']='mousemove';additiveEvents['mouseup']='mouseup';additiveEvents['touchstart']='touchstart';additiveEvents['touchmove']='touchmove';additiveEvents['touchend']='touchend';additiveEvents['touchcancel']='touchcancel';additiveEvents['pointerdown']='mousedown';additiveEvents['pointermove']='mousemove';additiveEvents['pointerup']='mouseup';additiveEvents['pointercancel']='mouseup';}});
hu xiaoniu7 years ago

I try to fix it by making a patch of load.js. Details can be found here.