41
Help for ParamQuery Pro / Re: R2L Support in Edge & Chrome on "Virtual-X: True"
« Last post by paramvir on April 09, 2025, 09:55:05 am »Please use this patch to fix the RTL issue.
Demos in RTL can be viewed by appending rtl to the url.
https://paramquery.com/pro/demos?rtl
Code: [Select]
//fix for RTL.
pq.scrollLeft = (ele, val) => {
if (val == null) {
return Math.abs(ele.scrollLeft)
}
else {
val = Math.abs(val);
if ($(ele).css('direction') == 'rtl') {
val = -1 * val;
}
ele.scrollLeft = val;
}
}
pq.scrollLeftVal = (ele, val) => Math.abs(val)
Demos in RTL can be viewed by appending rtl to the url.
https://paramquery.com/pro/demos?rtl