neo.mjs 8.21.0 → 8.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/ServiceWorker.mjs +2 -2
- package/apps/portal/view/home/FooterContainer.mjs +1 -1
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/src/DefaultConfig.mjs +8 -16
- package/src/grid/Scrollbar.mjs +3 -4
- package/src/main/DomEvents.mjs +2 -2
- package/src/main/mixin/TouchDomEvents.mjs +1 -1
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -46,12 +46,12 @@ const DefaultConfig = {
|
|
46
46
|
/**
|
47
47
|
* Pass a token in case you are using the CesiumJS main thread addon
|
48
48
|
* See: https://github.com/neomjs/neo/blob/dev/src/main/addon/CesiumJS.mjs
|
49
|
-
* @default
|
49
|
+
* @default undefined
|
50
50
|
* @memberOf! module:Neo
|
51
51
|
* @name config.cesiumJsToken
|
52
52
|
* @type String|null
|
53
53
|
*/
|
54
|
-
|
54
|
+
|
55
55
|
/**
|
56
56
|
* Set this config to false to disable the component logging using Ctrl-Right-Click
|
57
57
|
* @default true
|
@@ -79,21 +79,21 @@ const DefaultConfig = {
|
|
79
79
|
environment: 'dist/production',
|
80
80
|
/**
|
81
81
|
* In case you are using the GoogleMaps main thread addon, you can pass the API key here.
|
82
|
-
* @default
|
82
|
+
* @default undefined
|
83
83
|
* @memberOf! module:Neo
|
84
84
|
* @name config.googleMapsApiKey
|
85
85
|
* @type String
|
86
86
|
*/
|
87
|
-
|
87
|
+
|
88
88
|
/**
|
89
89
|
* In case you are using the GoogleAnalytics main thread addon or useGoogleAnalytics: true,
|
90
90
|
* you can change the gtag id here. Required for the online examples (gh pages)
|
91
|
-
* @default
|
91
|
+
* @default undefined
|
92
92
|
* @memberOf! module:Neo
|
93
93
|
* @name config.gtagId
|
94
94
|
* @type String
|
95
95
|
*/
|
96
|
-
|
96
|
+
|
97
97
|
/**
|
98
98
|
* Flag for running on https://neomjs.github.io/pages/
|
99
99
|
* => to use local images paths instead of raw.githubusercontent.com
|
@@ -253,14 +253,6 @@ const DefaultConfig = {
|
|
253
253
|
* @type Boolean
|
254
254
|
*/
|
255
255
|
useTaskWorker: false,
|
256
|
-
/**
|
257
|
-
* Adds global dom event listeners for mobile related events like rotate, swipe, tap
|
258
|
-
* @default true
|
259
|
-
* @memberOf! module:Neo
|
260
|
-
* @name config.useTouchEvents
|
261
|
-
* @type Boolean
|
262
|
-
*/
|
263
|
-
useTouchEvents: true,
|
264
256
|
/**
|
265
257
|
* False will create the vdom.Helper within the App worker (experimental!)
|
266
258
|
* @default true
|
@@ -271,12 +263,12 @@ const DefaultConfig = {
|
|
271
263
|
useVdomWorker: true,
|
272
264
|
/**
|
273
265
|
* buildScripts/injectPackageVersion.mjs will update this value
|
274
|
-
* @default '8.21.
|
266
|
+
* @default '8.21.1'
|
275
267
|
* @memberOf! module:Neo
|
276
268
|
* @name config.version
|
277
269
|
* @type String
|
278
270
|
*/
|
279
|
-
version: '8.21.
|
271
|
+
version: '8.21.1'
|
280
272
|
};
|
281
273
|
|
282
274
|
Object.assign(DefaultConfig, {
|
package/src/grid/Scrollbar.mjs
CHANGED
@@ -53,7 +53,7 @@ class GridScrollbar extends Component {
|
|
53
53
|
ScrollSync.register({
|
54
54
|
fromId: me.parent.view.vdom.id,
|
55
55
|
toId : me.id,
|
56
|
-
twoWay: !Neo.config.
|
56
|
+
twoWay: !Neo.config.hasTouchEvents, // Syncing the scroller back to the view affects mobile scrolling
|
57
57
|
...params
|
58
58
|
})
|
59
59
|
} else {
|
@@ -93,9 +93,8 @@ class GridScrollbar extends Component {
|
|
93
93
|
let me = this;
|
94
94
|
|
95
95
|
value.on({
|
96
|
-
|
97
|
-
|
98
|
-
scope : me
|
96
|
+
load : me.updateScrollHeight,
|
97
|
+
scope: me
|
99
98
|
});
|
100
99
|
|
101
100
|
value.getCount() > 0 && me.updateScrollHeight()
|
package/src/main/DomEvents.mjs
CHANGED
@@ -21,7 +21,7 @@ const globalDomEvents = [
|
|
21
21
|
{name: 'wheel', handler: 'onWheel', options: {passive: false}}
|
22
22
|
];
|
23
23
|
|
24
|
-
// Will get applied to the document.body in case Neo.config.
|
24
|
+
// Will get applied to the document.body in case Neo.config.hasTouchEvents === true
|
25
25
|
const touchEvents = [
|
26
26
|
{name: 'touchcancel', handler: 'onTouchCancel'},
|
27
27
|
{name: 'touchend', handler: 'onTouchEnd'},
|
@@ -187,7 +187,7 @@ class DomEvents extends Base {
|
|
187
187
|
addGlobalDomListeners() {
|
188
188
|
let me = this;
|
189
189
|
|
190
|
-
[...globalDomEvents].concat(Neo.config.
|
190
|
+
[...globalDomEvents].concat(Neo.config.hasTouchEvents ? touchEvents : []).forEach(event => {
|
191
191
|
document.body.addEventListener(event.name, me[event.handler].bind(me), event.options)
|
192
192
|
});
|
193
193
|
}
|