[Webworks-long Press Conference]

Hi all

How to get the event long press on an element of the list item?

Thank you.

Dennis Ritchie.

The DOM touchevent records such information

Your question is a little vague, so I can't really that trap touch events provides this information to the event record timeStamp so...

ontouchstart - retrieve the timeStamp

ontouchEnd - retrieve the timeStamp

Subtract the two and you have the milli-seconds the user pressed for

The same thing a little exists for mouse events

The other touch events are also important - particularly ontouchmove that the user can move out of the clickable area - e.g. accidentally click on leave, move outside it to stop what is happening if you need satisfy as well as

It is easy to work out the details in the ripple using the debugger by setting breakpoints on your event handlers

It is setting up a simple little test app, so you can also see exactly what events

Tags: BlackBerry Developers

Similar Questions

  • Rearrangement of the app becomes broken after long pressing some applications

    I have a 6 s with the newest iOS (9.3.2) iPhone. When I long press certain applications (those that do appear a menu "contextual"), if I long press another app after that, I can't get the apps to "wiggle" mode to reorganize them. The phone vibrates briefly and then nothing, is more how long I press the application icon. There don't seem to be a way to solve this problem once the phone is in this State outside its restart. Put the phone in mode 'sleep', close all background applications, etc. does not solve the problem. Is there a way to fix this without having to reset the phone or is anyway to disable those menus "pop up"?

    Your iPhone 6 contains a tactile 3D feature - newly introduced with the 6s iPhone and iPhone 6s +.  It is described here:

    http://help.Apple.com/iPhone/9/#/iphcc8f419db

    This explains why you see a menu "contextual".

    To rearrange icons, tap and hold an icon with less pressure that you use to display the "pop-up".

  • I can't select or copy text on Firefox for Android 26.0.1 (device: Samsung Galaxy Note 2) OS: Android 4.3. Long press on the text does not work. )

    Can't select or copy text on Firefox for Android 26.0.1.
    Device: Samsung Galaxy 2 Note.
    OS: Android 4.3.
    Long press on the text does not work.

    I would ask someone to check that...

    I'm glad to hear that your problem has been resolved by using the beta version.

    If you have not already the case, please mark this thread as solved by the solution of marking.

    This will help other users experience similar problems helps to find faster and more efficiently.

    I hope that you will continue using our products and we thank you for contacting the Mozilla Support.

  • When apple will hold his next Press Conference this year?

    I was wondering when apple will hold his next Press Conference as last year it was March, but apple normally placed a tab on here website home page explaining everything and where to get tickets/watch it live online. Thanks for the support - Jake.

    I can't find the exact date, only March 2016.

    Ed. I doubt that Apple has released the date for the moment.

  • long press "Home" button shortcut

    Hi, I've updated to lollipop & new update built & everything works fine... Love the new update to date... Battery drains much faster however. I wanted to ask if anyone knows is it possible to change the shortcut now google to long press "home" button? Can we put something else to this shortcut?

    On the battery, as we continue to tell people, the device will play better after several days and charge cycles. Could also contribute to a repair with the CCP.

    And the 'home' button action is not editable, you can block however with some 3rd party applications or with the AFDB.

  • Xperia Z5 plays long pressed ringtone

    Hi, I am very happy with my Z5 Xperia and the only conclusion should the usual flaws as get you in most phones, but I encountered an error that I found rather boring, unusual and unexpected, when I long press (3 seconds) the power button to turn off the phone the phone plays the standard ring xperia continuously until I have shut down or restart my camera but more intriguing , if I continue to long press the power button my adds the same ringing phone so now that I have two of the same ringtones play constantly, but out of sync and that occur every time I long press my power button.

    I was wondering if it was a setting of an app, I installed because I do not think that this was happening when I got my phone 5 months ago and I experienced all the settings I could find and even the developer settings.

    Did someone experienced this with their Xperia Z5?

    Thanks, I found it, there looks like there is a bug in the shortcut "accessibility" leave this option off, it was a little confusing as it reads:

    "When this feature is enabled, you can quickly enable features of accessibility in two steps:

    Step 1interested and hold the button until you hear a noise or feel a vibration.

    Step 2:Touch and hold with two fingers until you hear audio confirmation.

    "If the device has multiple users, you use this shortcut on the temporary lock screen allows accessibility until the device is unlocked.

    I copied all the text in the 'Shortened accessibility' page so that someone might be able to make sense and in "step 2" where "tap and hold"? ". Not android I'm a sensor on my power button? and have a touch screen? Or is it a conflict between android and my device?

    In any case I thought about it, don't go on the shortcut "accessibility" on your Sony Xperia Z5, it is buggy.

    Thank you guys for pointing me in the right direction.

  • Problem after a long press on a ListView, contextActions ActionItem loses the selection

    Trying to implement a long press on a ListView to make appear a contextActions ActionSet.

    The problem comes when the ActionItem came out the selection of ListView is cleared I don't give no pleasant way to read the row my C++ code.

    Yes, I can do a code messy to save the item enabled in a ListView of the QML breast property when 'onActivationChanged' is called and read later than my C++ code but I prefer to do it cleanly.

    Lack of documentation and examples of slow development once more.

    Or what is more likely is that this behavior has simply not thought at the time.

    For those thinking just use "onTriggered" and put in place a button instead, this action is used for something else.

    So this expected behavior?

    ContextMenus (ActionItems) are not compatible with the ListView?

    Did someone come up with a way to clean way to do this?

    Hi BBSJdev,

    You can see the example of Battambang, available under https://github.com/blackberry/Cascades-Samples/tree/master/bucketlist

    There LongPress, ConextMenu, simple and select Multi, it may have what you are looking for.

    I hope this helps.

  • BlackBerry Smartphones 9860Touch screen... Help... Long press

    Hi all

    Any new on BB and in love... BUT

    I have the full touchscreen of the Torch 9860

    Summer move my icons app around without problem

    Download some app from the store

    Then all of a sudden I can not get the menu up

    using the function of the press "Long".

    to move my apps or a folder

    I can do it thro' the menu button, but I prefer the Long press

    As shown on page 50

    The book of BlackBerry

    The ultimate Guide to get the most out of your BB

    It's probably me I changed something while

    publicize my new gadget and clicked on something

    or something has changed... BUT

    Icannot find something about it on the old Tinternet

    So please please Please HELP

    Mrbogg

    HE SORT

    Here's how

    Options from the main screen

    Typing and language

    Sensitivity of the touch screen

    Check the box

    Context menu open pending torch

    That's all

    Thank you all for your help and ideas

    Anyone knows a good hair transplant surgeon...!

  • Photoshop CS5 freezes for a few seconds on a long press on the tools.

    Hello
    I'm experienceing a strange on Macbook Core2Duo Pro and Macbook Air 13 ", MBA, I bought last week.

    When I long press any tool in the Toolbox to develop it, photoshop CS5 freezes for a few seconds.

    Any idea?

    PS: I tried both CS5 and CS5.1 on OS x Lion 10.7.2. I posted this question to Apple to the forum one day there is no answer yet.


    Kind regards
    Wassim

    You have installed Zoom right?

    http://feedback.Photoshop.com/photoshop_family/topics/switching_between_grouped_tools_caus es_freeze

  • Firefox won't download - long, press menu get, 'save image' and nothing happens. FF 34.0.1 Android 5.0.2

    As indicated in the question - Firefox for Android version 34.0.1, Android version 5.0.2 (Tablet Google Nexus 7 2013).
    This problem just showed today - I found an image on the web (not Facebook) that I wanted to save, so I did the press long habit, the menu popped up and I typed "save image". It has been highlighted and the menu has disappeared, but nothing happened, no small oval bar saying "Download began", and there is nothing in the Photos or download the app on the tablet. I have not changed any settings Firefox or Android (other than to change my PIN code), so it's a bit frustrating. Any help would be appreciated. Thank you.

    I had this problem too and finally found the problem is that my download folder was missing from my storage device. So I just manually created a /download/ folder and I was able to save pictures again.

  • When I long press on a link, in addition to opening a box of context, it also opens the link in this window. How can I get JUST the context window appears?

    I'm an avid user of pocket and I like to scroll through the different blog sites and save articles to read later. In general, I have been using Google Chrome browser that forces me to open each section in a different tab and then share this article to the Pocket to save him. I was delighted when I found the firefox browser has worked very well and even supported Add ons. I decided to try it, but have encountered a major problem. When I press a link to share, instead of a context window appear and the site remains the same, a context window opens while the site loads the link. When I right click on a link in my browser, it does not mean I want to go to this link, so I do not know why the same procedure would cause the mobile browser to do so. Is there a way I can press a link without having to open the link in this tab?

    Well, it's silly, but it's the best I could come up with:

    I tested this on Gizmodo: when the menu press and hold appears, instead of lifting the finger pointing upwards, slide it downwards a little, right next to the link, before you lift your finger on the glass. Then the script on the page detects a "mouse up" (or equivalent event) on the link. It works for you?

    I know that you cannot see the link in the menu, but one or two lines of text height will usually do.

    Would probably be wise for Firefox cancel all events associated with touching the link once the menu is displayed. Or to make sure that the site includes as a right-click (that seems more difficult). I have not checked to see if ideas along these lines have been filed in the bug tracking system.

    Edit: Tested on a Nexus 5 (LG).

  • my cursor moves only on long press arrow keys - how to get back to normal?

    The normal configuration for my keyboard, it is that when I press an arrow key, the cursor moves in a single step. Something happened to my installation of Firefox as the cursor moves only if the key direction for a second or two. How to return this setting to normal?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Long press IOS9.2 iPad keyboard problem

    I use IOS9.2 on an iPad 3. Have the support about the, and. causes no buttons! or? "But gives or"

    Is there a solution?

    It is normal and expected behavior. The other characters are accessible by pressing Shift (arrow).

  • I have Acer E5-571. After the closing, I long press on button / stop

    I have an Acer E5-571 with Windows 10. After that I stopped it my laptop screen goes black. When I want to turn it on again it does not react to the mouse, the keyboard or pressing the power button. I have to press and hold the power button to turn it off, and then only I can start with a push of the power button. Pease help

    Sorry your having problems with your computer... Did you do any type of hardware change? Moved things around the power button which can be moved to the location of it... If not. Try this...

    Remove all items from the power of the computer cord, battery and charger, unplug everything that can be pluged in it. Press and hold the power button for 1 min... After that back things together and try and see if that helps at all!

    James

  • Is it possible to disable the firefox search option when you long press the button home on Samsung Galaxy S5 Active?

    I have a S5 Active and sometimes the home button sticks and registered as a prolonged pressure that makes it appear the Firefox search instead of going to the home screen. Is it possible to disable the search for Firefox so that it does not happen. I love the Firefox browser, but if this continues to be I have to uninstall it.

    Hello djpianalto, you could delete the default settings for firefox on android in the control panel (as described in this external article).

    or try an app like https://play.google.com/store/apps/details?id=hk.sld.SwipeLaunchDisabler

Maybe you are looking for

  • Re: Recovery disk is not recognized

    Good evening. I have difficulties to re - install my Win7 on a Satellite L555 laptop.Last week I cought a virus "system check", which could be removed by anti virus software and a trojan remover. But to make sure that the infection is without any res

  • I deleted sessionstore.jsover & restarted, etc, but even when it starts with a week session

    I originally asked this question about 2 weeks ago - no matter what after I have delete the sessionstore.js in C, FFox always starts with a session that is stupid weeks - even if I change completely the sites & reboot etc. - of course the info on sit

  • Error: 'end of the program - DDE server window.

    I am running windows xp sp3. For these last days, I get an error box/message "End program - DDE server window" at shutdown. Only after clicking on endnow 3-4 times, it stops.

  • Cannot send emails from Comcast account

    All of a sudden I can't send e-mail from comcast account from my computer Dell. Is this a bug! I can send messages from the iphone, itouch and MAC very well. What the heck is this problem? I tried the port out 25 and 587. I've turned on auth and off.

  • Windows Mail in Vista family 32 premium receives e-mail!

    My Windows Mail does not receive emails, but he sends all emails on itself, which is the only mail I get in my Inbox. In addition, by hitting the send/receive and Synchronize buttons, I get a window that says "some errors occurred while processing ta