:: Forum >>
Grid not scrolling on mobile device
Thierry Nivelet (FoxInCloud)
Friday, February 9, 2018
this patch removes the error above but does not fix the scrolling issue:
AW.dispatch = function(element, event){
if (!(element && element.id)) return;
var type = "_on" + (events[event.type] || event.type) + "Event";
var target = AW.object(element.id);
var obj = target;
while (obj._parent){
obj = obj._parent;
}
return target[type].call(obj, event);
};
Thierry Nivelet (FoxInCloud)
Friday, February 9, 2018
Alex (ActiveWidgets)
Friday, February 16, 2018
Thierry Nivelet (FoxInCloud)
Friday, February 16, 2018
the examples still work without iframe -
http://v2.activewidgets.com/examples/2.5/virtual.htm
AW does not use touch events for scrolling - it allows you to scroll the content area and then listens to scroll events to update the content (in case of virtual scrolling).
What looks wrong to me is how AW(element, event) is called on the window level - I cannot find anything like that in AW source.
Alex (ActiveWidgets)
Friday, February 16, 2018
Also, the onresize event handler is only set on scrollbars span element - which is only supported in older IE. So onresize event should not fire on iOS at all.
Alex (ActiveWidgets)
Friday, February 16, 2018
Hi Alex,
The issue is still pending… I need your help to know where I can start debugging.
On
http://foxincloud.com/tutotest/bs/dataUpdate.tuto, no more 'window.onresize' bug after applying your patch, thank:
if (!(element && element.id)) return;
Scrolling on touch device no longer raises any error, except page still scrolls instead of the grid.
These
work fine:
- On the desktop, mouse scroll button (AKA middle button)
- Your example without iframe and additional JS library:
http://v2.activewidgets.com/examples/2.5/virtual.htm
I suspect that another library (jQuery or Bootstrap) stops the propagation of the event that AW uses for updating the grid's content.
Loading aw.js after the other libraries does not help.
- What event does AW use to update the grid's contents?
- Where is it attached to?
- In which source file is the corresponding code?
- Do you have a suggestion where I can set a breakpoint to understand what happens?
Thanks in advance
Thierry Nivelet (FoxInCloud)
Wednesday, July 18, 2018
Thierry Nivelet (FoxInCloud)
Wednesday, July 18, 2018
Update:
On the desktop,
http://v2.activewidgets.com/examples/2.5/virtual.htm
Grid scrolling with the middle mouse button:
- safari (mac): OK
- edge (PC): OK
- chrome (Mac & PC): OK
- Firefox (mac & PC): KO on the grid surface, OK on the grid scrollbar
Hope this help shedding a light on our issue,
Thierry Nivelet
Thierry Nivelet (FoxInCloud)
Wednesday, September 26, 2018
The scrolling issue is due to this rule in your css (line 456) -
.aw-touch .aw-hpanel-middle {
overflow:hidden;
}
The value must be 'scroll', if I disable this rule, the scrolling works fine.
Alex (ActiveWidgets)
Wednesday, September 26, 2018
Issue was due to a stupid CSS rule we added:
.aw-touch .aw-hpanel-middle {
overflow:hidden;
}
Alex helped us change it into:
.aw-touch .aw-hpanel-middle {
overflow:scroll;
}
Works just fine now!!
Thank you very much Alex!
Thierry Nivelet (FoxInCloud)
Wednesday, September 26, 2018
This topic is archived.
Back to support forum
Forum search