AliSherKashif / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Tensile Scrolling And Drag And Drop - Scrolling Negative Not Returning To ScrollY Zero - Obscured Title Bar #1190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Having a scrollable container whith draggable components, if one drags beyound 
the start of the scrollable container, that is scrollY becomomg negative, after 
releasing the pointer the container does not scroll back to zero and the forms 
title bar may be obscured by the draggables ghost image.

See the attached file for my humble temporary fix.

Original issue reported on code.google.com by Stefan.A...@gmail.com on 23 Sep 2014 at 12:40

Attachments:

GoogleCodeExporter commented 9 years ago
I changed my "fix" to repainting the container and doing a scrollRectToVisible 
that fixed the missing tensile scrolling.

The reason for the misbehaviour seems to be that the pointerReleased event is 
on the title bar of the form. The framework really should update the titlebar 
and the tensile scrolling itself.

Original comment by Stefan.A...@gmail.com on 27 Sep 2014 at 11:26