For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 12 replies, 4 voices, and was last updated 13 years, 4 months ago by
support-octavio.
-
AuthorPosts
-
SonamGyatoMemberHave a panel with 5 images on it (toolbar).
each has a javascript function attached to it.
these functions are being called twice in mobi v1.5.
March 26, 2012 at 1:22 pm #324649
SonamGyatoMemberI’ve tracked the problem down.
My app has a dynamic panel where i create the
listitems dynamically.In the post-transition event, i call.
$( “#m1-app-panel1-scroller” ).height(listHt);
$( “#m1-app-panel1-scroller” )[0].myScroll.refresh();phoneui.preprocessDOM( “#m1-app” ); //rebind all list-items to be selectable
to resize the panel.
if i comment out the preprocessDOM line – i don’t get the double callbacks.
March 26, 2012 at 2:04 pm #324650
SonamGyatoMemberI’ve emailed you a test project.
March 28, 2012 at 1:53 pm #324745
SonamGyatoMemberIt happens always.
The test project displays the same alert message for both.
are you sure you’re not hitting clicking OK 2 times.
I’m running the same app i emailed you v1.5 – i have to click
OK 2 times.Just emailed you the same project with a click counter to you.
Also can you test with v1.5 production release – you might have
a newer one installed.March 28, 2012 at 6:28 pm #324758
SonamGyatoMemberI’ve tested to with the iphone emulator that ships with Mobi.
That’s my test environment.
And yes – get double clicks there.
my TC is v1.5 – build 20120320
March 28, 2012 at 6:36 pm #324759
SonamGyatoMemberThe cause is the
phoneui.preprocessDOM( “#m1-app” );
call.
If you comment that line out – you won’t get double clicks.
I’m curious as to why it’s not behaving the same way for you.
The app i sent to you is super simple.
My guess is the processDOM function is registering click event
– w/o unregistering the previous event.March 29, 2012 at 6:15 pm #324804
SonamGyatoMemberI’ve found a workaround.
if instead of
phoneui.preprocessDOM( “#m1-app” )
i do
phoneui.preprocessDOM( “#m1-app-panel1” )
it works fine.
but i can see this being a problem for some other apps.
September 19, 2012 at 7:11 am #330285
SonamGyatoMemberHas a solution to this double-click ever been found.
If you review my previous messages on this thread…
I’m creating a list dynamically (w/ an image button in the
list item).i call phoneui.preprocessDOM(() as required by the dynamic
list creation and now am getting double clicks when
the image button is pressed.September 20, 2012 at 5:36 am #330316
support-michaelKeymasterAre you using the latest MobiOne version (2.1.2)?
(There have been MobiOne code generation updates since your 1.5 posts)If yes, can you provide simple example project that demonstrates this problem for us to investigate further?
April 9, 2013 at 2:58 am #337770
renato.guigliaParticipant@everest wrote:
Has a solution to this double-click ever been found.
If you review my previous messages on this thread…
I’m creating a list dynamically (w/ an image button in the
list item).i call phoneui.preprocessDOM(() as required by the dynamic
list creation and now am getting double clicks when
the image button is pressed.Hi, i did the same thing and now i’m in trouble!
There is some workaround about this problem?
ThanksApril 10, 2013 at 6:15 pm #337859
support-octavioMemberHi renato,
The issue is being worked on now. Please see Wayne’s responses about same error reports here:
http://www.genuitec.com/support-genuitec/viewtopic.php?p=16749#p16749
http://www.genuitec.com/support-genuitec/viewtopic.php?p=15168#p15168 -
AuthorPosts
