Android Question [B4X] [XUI] SD XUIScrollView2D is flickering

Star-Dust

Expert
Licensed User
Longtime User
Thanks for the reporting . I will try correct it
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
In B4J it doesn't flicker anymore but the displacement of the panel is smaller than the displacement of the mouse cursor, this happens also in B4A.
Could you observe if the movements were of the right speed in the previous version?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
The thing is more complicated here than you thought because of the use of the XUI library. And anyway it's not clear why he sends coordinates even if you don't move your finger.

I'll tell you in the coming days
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
The flickering of the scrolling in your project comes from the fact that you use the Touch event of the internal panel PanelLocal_Touch and not the parent panel mBasePanel_Touch.
The PanelLocal.Left and PanelLocal.Top properties are changed during scrolling producing the flickering.

I have begun to write my own, see here.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I'm sorry, but I couldn't work on it, I took a few days off because of illness.

Thanks for the suggestion, I'll try in the coming days.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Thank you.
I had seen it yesterday evening and put it on my to do list for today.
The flickering is no more present !

There is a problem with scrolling with the finger.
When we add views with events like a table with labels onto the scrollview, this one doesn't scroll anymore with the finger.
The only possibility is with the scrollbars.

A suggestion for the scrollbars.
Make the bar scrolling only when the user touches the cursor.
And when the user clicks on the scrollbar outsides the cursor scroll 1 page, like in windows.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
There is a problem with scrolling with the finger.
When we add views with events like a table with labels onto the scrollview, this one doesn't scroll anymore with the finger.
The only possibility is with the scrollbars.
This is because the views above the panel absorb the touch event.
I excluded the possibility of addi a transparent panel over the views would allow a constant scrolling but would cancel the events of the other views.

A suggestion for the scrollbars.
Make the bar scrolling only when the user touches the cursor.
And when the user clicks on the scrollbar outsides the cursor scroll 1 page, like in windows.
In the first version it was actually like that, then for a reason I don't remember I modified it.
I will try to do it again.

Thank you for your suggestion
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
This is because the views above the panel absorb the touch event.
I know, but for me this is a problem because phone and tablet users would want it.
I have not yet looked if there is a possibility to send the event to the underlying view in Android.
In B4J it works in my scrollview.
And, if I remember well, in B4i it's also the case.
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I know, but for me this is a problem because phone and tablet users would want it.
I have not yet looked if there is a possibility to send the event to the underlying view in Android.
In B4J it works in myscrollview.
And, if I remember well, in B4i it's also the case.
If you think it is useful I can create the possibility to enable a panel above for scrolling but which cancels the events of the underlying objects.
I can always make an option to enable or disable it.
 
Upvote 0
Top