Tap vs swipe event on Windows Phone 8 - windows-phone-8

I'm developing an app for WP8, and I'm having some issues...
When I slide/swipe/scroll my LongListBox in the emulator, the Tap event gets triggered!
How can I differentiate between a tap and a swipe gesture?

This can also be to do with bubbling of events. In Windows Phone this can be easily handled using the IsHitTestVisible property.

It could be a bug with the emulator.
You could always just check for the events when releasing, rather than relying on gestures, so that you can determine if they indeed tapped or swiped.
Alternatively, have someone test for you on Windows 8 to see if it's an actual issue with the emulator.

Related

How to turn off “Shake to show Change Keyboard window” on Nexus 5?

Every time I shake my Nexus 5, the Change Keyboard window pops-up.
Please let me know how to turn it off. The Andriod version in my phone is 6.0.1.
Found the issue, recently I installed ICICI app on my phone. Along with this app a keyboard called 'ICICI Smartkeys' got installed which has updated the default behavior for shake gesture on my phone to pop-up 'Change Keyboard' window. Disabling the keyboard fixed the issue.

Electron steals focus to Windows 10 Touch Keyboard and makes it unusable

I'm trying to run the attached project on Windows 10 Pro (latest version available without Windows Insider Program).
Basically it is a fullscreen browser window that navigate to http://www.google.com.
I configured Windows in Tablet mode, in order to let the touch keyboard popup whenever any text field in the page (in this case the query one) gets focused.
Then, I packaged the application with electron-windows-store in order to let electron work as Windows Store application.
When I start the application and Google home page is loaded I'm not able to use the touch keyboard, because it pops up but immediately disappears, like if electron tries to acquire again focus and causes touch keyboard disposal.
I tried also to disable fullscreen mode and setup frame coordinates in order to be as it was in fullscreen, but no success.
Any suggestion?
TestApp.zip
GitHub Repo
This seems to be related to an open issue on the Electron GitHub repository. You might have to wait for the Electron team to introduce this improvement.
I've managed it. The issue was caused by an old dependency to electron. Once updated it to the latest version I know (1.4.7) it all started working.

How to register for Scroll Event on Windows phone

I am working on an app on Windows phone. I want to get notified when the ScrollViewer starts scrolling.
I see some example does this:
ScrollViewer sv;
sv.OnScrollChanged += ScrollViewer_ScrollChanged;
But the problem is I think the 'OnScrollChanged' properties is not available on Windows phone.
How can I get notified when user starts scrolling on a ScrollViewer?
Windows Phone Runtime or Windows Phone Silverlight?
The Windows.UI.Xaml.ScrollViewer used in Windows Phone Runtime events exposes ViewChanging and ViewChanged events.
The Silverlight ScrollViewer doesn't expose any direct events like this, but you could try binding to the Horizontal or VerticalOffset properties

How to determine when SIP (software keyboard) is dismissed in Windows Phone 8?

How to determine when SIP (software input panel) is dismissed in Windows Phone 8?
Searched on StackOverflow and online but found nothing!
The keyboard is dismissed when no textbox has a focus, so you can use that as an indicator.
What I think was impossible in WP7 (not sure whether it has changed in WP8) was to detect whether the SIP keyboard vs. hardware keyboard was used. But then again, how many WP8 phones have hardware keyboards? :)
As far as I can tell there is no API, or an event generated to know when the keyboard is dismissed.

windows phone: jquery mobile swipe not recognized

I'm making an HTML + jquery mobile app. It works fine on my pc but when I try it out on my windows phone the swipe event doesn't seem to get fired..
$('div.ui-page').live("swipeleft", function () {
goToNextPage()
});
Windows Phone 7/IE9 does not support mousemove event so there is not way for jquery mobile to recognize swipe event.
Some mobile frameworks like Apache Cordova (PhoneGap) provide workaround for this by adding special shim between native (silverlight) touch events and web browser control to fix missing mouse events. Demo
Update
This works fine on Windows Phone 8 since it supports mousemove.
Tested the jquery mobile swipe example on a Lumia 920, and it worked perfectly. So trust it works well for WP8 devices. http://jquerymobile.com/demos/1.3.0/docs/examples/swipe/swipe-page.html. I actually used a slide menu plugin with swipe function and it worked on the Lumia 920. Here is the link to the plugin : https://github.com/tegansnyder/JQuery-Mobile-Slide-Menu