Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

scrolling widget batshit insane on android
Started by stan8 Sep 19 2012 01:35 AM

29 replies to this topic
[TOPIC CONTROLS]
Page 1 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

stan8

[GLOBAL: userInfoPane.html]
stan8
  • Contributor

  • 139 posts
  • Corona SDK

Well, the scrolling widget is impossible to control on some android devices, it scrolls absurdly fast, and by absurdly fast I mean that sometimes you move your finger 1 milimeter and the thing jump so hard that the next frame you see nothing and then 1 frame later you see the thing rebounding back...

How I fix that?

Or how Corona fix that?

I am using the lastest release (not daily build)
uid: 142895 topic_id: 31144 reply_id: 331144


[TOPIC: post.html]
#2

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

You should not using widget ScrollView. Sometimes it can disappear with all your content inside.
They know about this bug. You should wait. They are very slow in fixing this things.
Try to use this http://developer.coronalabs.com/code/scroll-content
It is not perfect but I think it doesn't have that bug.
uid: 138389 topic_id: 31144 reply_id: 124599


[TOPIC: post.html]
#3

stan8

[GLOBAL: userInfoPane.html]
stan8
  • Contributor

  • 139 posts
  • Corona SDK

And here we go with Corona disappointing me a lot again...

First, scroll content is no good to me, I am using it only in part of the screen, not the whole screen...

And second, I used ScrollView because of a very bizarre behavior when I tried to do my own version (ie: when I inserted object C in customscrollview B inside group A and moved group A by 20 and scrollview B by 20, the result was B moving 20 and A moving 40).

Corona :(
uid: 142895 topic_id: 31144 reply_id: 124606


[TOPIC: post.html]
#4

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

>>>I used ScrollView because of a very bizarre behavior when I tried to do my own version ....
You should post here your code. I can't say nothing about this.
Maybe there was an error somewhere.
uid: 138389 topic_id: 31144 reply_id: 124613


[TOPIC: post.html]
#5

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

Hey Stan.

We are aware of this issue and are working on a fix. I don't have a time estimate at present but I can assure you that it is being worked on and that we take any bugs with our SDK very seriously.

The fix will be here sooner rather than later, and by that i don't mean it's going to take months.

Sit tight and I will get this fixed asap.
uid: 84637 topic_id: 31144 reply_id: 124723


[TOPIC: post.html]
#6

stan8

[GLOBAL: userInfoPane.html]
stan8
  • Contributor

  • 139 posts
  • Corona SDK

Thanks :)

The faster, the better! Because the app that uses scrollview is already gold and we are already uploading it to the markets... (only waiting for apple approval to launch in all markets at the same time...)
uid: 142895 topic_id: 31144 reply_id: 124725


[TOPIC: post.html]
#7

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

Your welcome Stan, although I don't need the thanks. This issue has been outstanding for a long time (I have only just taken over development of the widget library however).

I will keep you posted.
uid: 84637 topic_id: 31144 reply_id: 124726


[TOPIC: post.html]
#8

hawkwood

[GLOBAL: userInfoPane.html]
hawkwood
  • Observer

  • 24 posts
  • Corona SDK

At least on Kindle Fire, setting the friction to 0.1 seems to have helped keeping the scrollview under control.
uid: 39505 topic_id: 31144 reply_id: 125550


[TOPIC: post.html]
#9

stan8

[GLOBAL: userInfoPane.html]
stan8
  • Contributor

  • 139 posts
  • Corona SDK

hawkwood thanks!

The behavior now kinda suck, but now it is usable...

The low friction is kinda obvious (you need to drag a lot to go where you want), but it avoids the batshit insane scrolling issue, now it only scroll as you wish.
uid: 142895 topic_id: 31144 reply_id: 125582


[TOPIC: post.html]
#10

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

The bug is there when you are using 0.1 friction but will not see it thery often.
With 0.1 friction this is not scrolling but moving.
uid: 138389 topic_id: 31144 reply_id: 125635


[TOPIC: post.html]
#11

hgbrian

[GLOBAL: userInfoPane.html]
hgbrian
  • Contributor

  • 103 posts
  • Corona SDK

Any update on this? It's annoying to have to change friction to 0.1 for android builds. It also looks shoddy.
uid: 94304 topic_id: 31144 reply_id: 127319


[TOPIC: post.html]
#12

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

I am glad to report that this issue has been fixed in daily build 936.
Thanks for your patience.
uid: 84637 topic_id: 31144 reply_id: 128274


[TOPIC: post.html]
#13

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Where can I find the new scrollView.lua.file. We have implemented our own scroll module but we used the old one. Is it possible to get the updated scrollView source code ?
We can't use
widget.newScrollView
because there are still a lot of probem.
uid: 138389 topic_id: 31144 reply_id: 139600


[TOPIC: post.html]
#14

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Please could someone from Corona answer.
Just post the updated scrollview.lua nothing more.
uid: 138389 topic_id: 31144 reply_id: 141428


[TOPIC: post.html]
#15

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

The last version of scrollView.lua made by former employee gilbert is available on github: https://github.com/ansca/Scroll-View

We are close to releasing our new widget library also so stay tuned for that.
uid: 84637 topic_id: 31144 reply_id: 141571


[TOPIC: post.html]
#16

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Finally, there will be a decent scrolling.
uid: 138389 topic_id: 31144 reply_id: 141723


[TOPIC: post.html]
#17

tbernard

[GLOBAL: userInfoPane.html]
tbernard
  • Enthusiast

  • 57 posts
  • Corona SDK

I'm hoping that the widget library update will fix my scrollview issues.

Sitting on my hands waiting for it.
uid: 170004 topic_id: 31144 reply_id: 143189


[TOPIC: post.html]
#18

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Danny, Why the updated widget.scrollview don't have onMove event listener. How to fix this ? Is there a way to add it. I added a rect to group and assigned a move event but now it will not scroll anymore. Is here a way to make it call onMove when I am scrolling the scrollview ?
uid: 138389 topic_id: 31144 reply_id: 143200


[TOPIC: post.html]
#19

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

@vovasoft, the new/updated scrollView hasn't been released yet.
uid: 84637 topic_id: 31144 reply_id: 143202


[TOPIC: post.html]
#20

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Yes I know, We are waiting but until then there was a fix for the old widget.scrollView in build 2012.962 I think:
Merge widget: (1) Fixes casenums: 18538, 18537, 18503. (2) Fixes issues where widgets would be created with a center reference point when setting left/top values instead of a top left reference point. (3) Fixes issues where moving widgets to a different position than initial creation position could result in calculations reporting incorrectly.
If you see the https://github.com/ansca/Scroll-View by gilbert when is scrolled there is a "move" event dispatched. How could I have the same think in widget.scrollView because there is no "move" event, just "scroll began" and "scroll ended".
uid: 138389 topic_id: 31144 reply_id: 143208


[TOPIC: post.html]
#21

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

The new scrollView gives you "began", "moved" and "ended" events.

I haven't looked at the old widget code in over 3 months so any answer I could give you might not be 100% correct.
uid: 84637 topic_id: 31144 reply_id: 143209


[TOPIC: post.html]
#22

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Resolved: There was a return true in some place. Now it is working.
You said a new scrollView is coming soon. Will it be an update of acttual widget.scrollView or it will be a native scrollView ?
uid: 138389 topic_id: 31144 reply_id: 143213


[TOPIC: post.html]
#23

Danny

[GLOBAL: userInfoPane.html]
Danny
  • Corona Geek

  • 2,597 posts
  • Corona Staff

It is simply a complete re-write of the scrollView. That goes for all widgets in the new widget library.
Hope this helps.
uid: 84637 topic_id: 31144 reply_id: 143215


[TOPIC: post.html]
#24

tbernard

[GLOBAL: userInfoPane.html]
tbernard
  • Enthusiast

  • 57 posts
  • Corona SDK

I'm hoping that the widget library update will fix my scrollview issues.

Sitting on my hands waiting for it.
uid: 170004 topic_id: 31144 reply_id: 143189


[TOPIC: post.html]
#25

vovasoft

[GLOBAL: userInfoPane.html]
vovasoft
  • Contributor

  • 131 posts
  • Corona SDK

Danny, Why the updated widget.scrollview don't have onMove event listener. How to fix this ? Is there a way to add it. I added a rect to group and assigned a move event but now it will not scroll anymore. Is here a way to make it call onMove when I am scrolling the scrollview ?
uid: 138389 topic_id: 31144 reply_id: 143200



[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]