Navigation buttons detect Touch desktop computer vs device?

Hello

I'm trying to find a way to have the code use touchstart only when the user uses a touchscreen device. MouseDown and Mouseover would be used if the user is on a desktop computer. Is there a simple way to do this?

Thank you.

Press CTRL-e to help you code window to the top

Click your complete code

Place the following script above the first line of lively edge code / *.

var IS_MOBILE = getDevice(); Boolean

function getDevice() {}

isMobile var = {}

Android: function() {}

(return navigator.userAgent.match(/Android/i)? true: false;

},

BlackBerry: function() {}

(return navigator.userAgent.match(/BlackBerry/i)? true: false;

},

iOS: function() {}

(return navigator.userAgent.match(/iPhone|iPad|iPod/i)? true: false;

},

Windows: function() {}

(return navigator.userAgent.match(/IEMobile/i)? true: false;

},

all: function() {}

return (isMobile.Android () | isMobile.BlackBerry (): isMobile.iOS (): isMobile.Windows ());

return (isMobile.iOS ());

}

};

Return isMobile.any ();

}

Then ANYWHERE aboard lively, you can call:

{if (IS_MOBILE)}

Do mobile stuff

}

Because it's global

Tags: Edge Animate

Similar Questions

  • used open DVD player and is not detected by my computer or Device Manager

    Portable Hi, im having a problem with my dvd player, it worked fine, then I stop my computer one night, woke up the next day, tried to open my dvd drive but it used open... so I checked my computer and it has not been detected there, so I took the next step and active Device Manager... it has not been shown here either ive deleted filters upper and lower, but nothing works, I still have to check the bios because im not sure 100% what to look for or even how to check the bios, Ive only had my laptop a year and keep it in good condition... I hope it's a software problem and I don't have to send it for repair.

    any advice would be appreciated

    OK, I tried the sfc/scan command prompt now he got 77% and said that he could not perform the requested operation, I'll try a few more things you have posted and get back to you with the results

    Thanks for the help.

    I took your advice and tried Panda antivirus so far its adware found one, an attepmts of two Trojans and blocked to high jack my wifi connection, it's much better than my old av that has not detected any of these things!

    OK I just finished trying all the checks you mentioned... but nothing helps, looks like it's a hardware faliure after all, well.

    Thanks for the help anyway.

  • Is anyone know the device driver network right to install on a Hewlett Packard desktop computer that is running Windows XP Professional 2002?

    The network for computer device driver installation

    Did anyone know the right network device driver to install on a Hewlett Packard desktop computer that is running Windows XP Professional 2002 and he seems to have a processor Intel Pentium CPU RF?

    You can start here:

    You know do. But you must also give us the model and model number!
    Example:
    HP Pavilion a6827c
    A guide on finding drivers:
    More information:
  • Help - HP Pavilion a6030.uk desktop computer. Have to press the power button several times to start?

    Hello

    I have a HP desktop computer. The model is HP Pavilion a6030.uk, Opertating system: windows vista.

    My computer has had no problems at all until yesterday for some reason, I had to push the switch several times to start until he finally turned and did normal starts. As I would press the power as normal to start button, but all of a sudden, it turns off after about 2 seconds and so I would tap on the switch several times and each time it will not start and turn off, then the power button could be pressed again until it would finally turn on and start and run as normal and seems to work correctly. And it was the same thing today, I pressed the power button mutiple times (for example 6 times) until she finally started as usual.

    Savvy/computer im not very well informed or wise in this area, please someone will help me and give me some advice/help to fix/resolve this problem.

    Thank you for taking the time to read this and any help would be appreciated for this problem.

    Thank you.

    Vonbon90, welcome to the forum.

    When I see these symptoms on an old computer, I think it may be a power supply (PSU) failure/ing.  Here's a guide that will help your troubleshooting it.

    In addition, you could test the memory.  This can be done by removing all modules of memory and replacing them one at the time and start.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • Scanner EPSON Perfection V200 Photo: PDF button does not work since I use the scanner with an ASUS i5 running Win 7 Ultimate desktop computer.

    The PDF button does not work since I use the scanner with an ASUS i5 running Win 7 Ultimate desktop computer. I downloaded the 64-bit Epson software for the scanner.

    I found the solution to the problem, and it is indeed with the revised in Windows 7 Control Panel.

    Here how to solve the problem:
    Go to the control panel in Windows 7.
    Search scanner in the upper search box to the right
    You will see a "view scanners and cameras".
    Click it, you will see the Epson Perfection V200. Highlight.
    Click Properties, then Yes, then events.
    Where it says select an event, you MUST choose the event suitable for each option.
    To the Start button, choose Start the series of creativity
    For the copy button Choose launch Epson Scan
    E-mail button also Epson scan
    PDF includes Epson scan
    There you go.
    Now, all this was not necessary before, there are no instructions, and the fault lies with MS. how much more confused MS will do the control panel?
  • my desktop computer gateway using windows 7 ultimate will detect is no longer one of my 3 cd/dvd discs.

    As of this week my Gateway desktop computer no longer recognizes none of my 3 cd/dvd drives. 2 that came with my gateway and also my Sony drx-840u usb. I tried to go to my device manager and tried to uninstall the drivers, when doing so, it starts to install the driver, I think, then he said: installation failed and he states that something is wrong with the registry.

    Any help would be greatly appreciated

    Hi Keith,

    Welcome to the Microsoft community.

    What is the full and exact error message?

    Follow these methods to solve the problem with CD/DVD drives not recognized:

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up the registry, see the link:

    Back up the registry

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Method 1:

    First of all, I suggest for the link and try to run the fix it:

    Your CD or DVD drive cannot read or write media

    Method 2:

    See the article and perform the steps manually:

    Your CD or DVD drive is missing or is not recognized by Windows or other programs

    http://support.Microsoft.com/kb/982116

    Let us know if it helps, and if you need additional assistance.

    Thank you.

  • W7 professional after remote access to my desktop computer 'loses' his printer. Windows / devices and printers / "Officejet 6000.

    W7 Professional (both sides) after remoting in through our company intranet, my desktop computer 'loses' his printer.  If I go to "windows key" / devices and printers / she sees a "Officejet 6000', which is connected via usb, windows, but there as"not specified ".

    Hello

    Thank you for visiting the Microsoft answers community site. The question you posted would be better suited in the Technet forums. Please visit the link below to find a community that will support what ask you:

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

    I hope this helps.

  • I am a student with a desktop computer and a laptop - can I use a license student on multiple devices.

    I am a student with a desktop computer and a laptop - can I use a license student creative cloud / log on multiple devices.

    Hi,

    CC Adobe license can be activated on 2 machines using the same Adobe ID.

    Reference: licenses and terms of use | Adobe

    Kind regards

    Sheena

  • I have to press the button 'On' several times to start the small Dell desktop computer.

    After that I turned on the power strip, sometimes I have to press several times the button "On" until the computer stays on.  I see the small lights and most light in the power button lights up, but then they both leave, and the computer turns off.

    If it's only a month, contact Dell Technical Support for warranty repairs.

  • There is no button menu on Firefox soon my device android mobile. How do you get options to set a homepage without access to the menu?

    I'm trying to set up a homepage on my Android mobile device. All changes must have access via the menu. It works fine on my desktop computer, but there is no menu button on the mobile version.

    Hi rcbeeman39:

    1. Some Android devices have a menu built directly into the device button. In these cases, Firefox for Android cache added to the menu. You can always access the Firefox menu by pressing the menu button on the unit OR
    2. Hardware menu button is usually located at the bottom of the unit, next to the home, search and navigation buttons.
    3. Lots of information, including screenshots https://support.mozilla.org/en-US/kb/firefox-menu-icon-missing-android-how-access-menu
    4. If the above does not help, please, let us know your model number Android phone or Tablet (S4? HTC One? (etc), operating system Android version (jellybean 4.1, 4.2, 4.3, 4.4, kitkat lollipop 5.0, e tc) and exactly what you were doing, what happened and what you expected
    5. Finally, there is no way supported "setting a homepage" on Firefox for Android. The 3rd party unsupported host changer module can work for you: https://addons.mozilla.org/en-US/android/addon/home-changer/?src=search also, you can see the start screen customization can be good enough: https://support.mozilla.org/en-US/kb/use-awesome-screen-search-web-bookmarks-and-more

    Fingers crossed the foregoing allows just a little!

    ... Roland

  • P7-1299cb: no sound for desktop computer after update to windows 10

    I have a desktop computer that used to run windows 7 and finally decided to upgrade to windows 10.  Update had no problems, but I have no sound.  I tried to update the driver through windows update and HP support assistant, both did not acknowledge the problem

    Windows update, I get the following message: IDT - Audio Device - IDT High Definition Audio CODEC - error 0x8007001f

    Please any advice would be appreciated.

    Thank you

    Hello:

    The page sheet product indicates that your PC came with W7 64 bit.

    I can tell you that there is no audio driver W10 32 bit.

    If you have inadvertently posted the wrong bit version, see if this W10 64-bit IDT audio driver works...

    This package provides the Tempo IDT High Definition Audio Driver for assumption of office models that are running a supported operating system.

    File name: sp71717.exe

    Otherwise, there is a workaround solution that you can try to get at least the noise at work...

    Go to Device Manager and click to expand the category of audio, video and game controllers device.

    1. Select IDT High Definition Audio CODEC under this category.

    2. Select the driver tab.

    3. click on Update Driver... button.

    4-> select Browse my computer for driver software.

    5. Select-> Let pick me from a list of drivers for devices on my computer.

    6. Select Audio device high definition (not IDT high def...)  "This is important). and click Next.

    A warning message may appear, but click Yes.

    7 Windows has updated your driver software.

    8 restart the PC.

    The key is step 6.

  • New HP desktop, Windows8, Ubuntu, UEFI and a desktop computer that is no longer start

    I have a new HP desktop computer purchased just before Christmas, 2012.  Not realizing the problems with Windows8 and UEFI, I tried to load the version 12.1, Ubuntu, and now the Office does not start.

    Here is the chronology of the events:

    1A tried to install Ubuntu linux 12.1 with dual boot NO

    2 once installed Ubuntu, the system would not start and crashes with an error message

    3. accessed in UEFI menu and security disabled for all boot devices

    4 tried to start again, but the only thing on the screen is a picture of Seattle and the system will not meet any keyboard input

    At this point you can power cycle this machine, everything you want, and it puts just a photo of Seattle.  I can't access BIOS UEFI, or anything like that and the machine will not respond to any keyboard input.

    I did some research and it seems that this new version of the UEFI running on this desktop computer will not allow the machine to run anything other than Windows8?

    Any ideas on how to solve this problem?  I don't want doesn't matter what Microsoft anything running on this PC, and want to dual-boot.  I have not the recovery disc for this desktop computer.

    I think about how to solve this problem first becomes the machine to respond to keyboard entries, enter the UEFI and re - enable security this could allow me boot Windows8 still?

    Thank you!

    I finally got the machine to respond to the keyboard.  I found the solution on a linux Web site

    1. turn off the machine by pulling the power cord

    2. remove the battery

    3. press and hold the Power Off button for 60 seconds

    4 replace the battery

    5. start and hold down the ESC key

    BTW, I will update this thing with some notes as this can help someone else.

    The machine is a brand new HP P2-1310.  It comes with Windows 8.

    Try to wipe the hard drive and install linux has been in vain due to the new implementation of UEFI.  At best, I could install linux on a new partition, but the machine does never start the linux OS.  It will start only Windows8 successfully.

    As near as I can tell, UEFI will prevent any OS other than Windows8 currently running on this computer.  See linux UEFI as a kind of security attack and simply prevents the machine to use.  The Open Source community works now this last attempt of MS and PC manufacturers to prevent consumers who buy a new PC to install anything other than Windows8.  Run a search on this issue and you can get more information on the latest status.

    My guess is that sometime in 2013 different versions of linux Open Source will receive the digital signature required to interact with UEFI and load their OS on the new PC, or they will develop a workaround solution.  My suggestion for anyone considering buying a new PC that intends to install linux, immediately after that purchase should consider carefully what is not possible.  Right now I still can't do and I'm stuck now with Windows8.  If I had to do it again, I will not buy a new PC, but rather just go online and buy something.  After this experience I discovered used PCs with fast processors and a lot of memory can be purchased for $100 or less (craigs list), and because they are pre-UEFI, they will be easily load linux.

  • lost my vc10e rm pairing remote with my vaio desktop computer

    I recently lost pairing of my hand that held remote control rm vc10e with my vaio desktop computer I have changed batteries recently has yet no change

    any suggestions would be welcome.
    Niall keogh

    Hello

    1 have had any changes made on the computer before the show?

    2. do you get an error message? If Yes, what is the full and exact error message?

    Method 1:

    See the article and check if that helps:

    How to install and configure Bluetooth devices in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883259

    Method 2:

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up the registry, see the link:

    Back up the registry

    http://support.Microsoft.com/kb/322756

    See the article and check if it works:

    How to troubleshoot Bluetooth detection and connectivity issues in Windows XP Service Pack 2

    http://support.Microsoft.com/kb/883258

  • Driver DVD disappear from 'My computer' and 'Device Manager '.

    Vista HP Portable DVD player continues to disappear from 'My computer' and 'Device Manager '. Already tried Upper/LowerFilters.

    Hi, a few weeks ago, the DVD burner in the laptop suddenly disappearedmy computer (Windows Explorer).  The first thing I did was check theDevice Manager to see if the drive was there.  It was not the case.  Restarting the laptop did nothing.  Repeated several times, active Vista updates.  No change.  By checking the net, I tried to delete the Upper/LowerFilters in the registry, download it tool Microsoft fix , delete iTunes, do a system restore, to change all the parameters of thesleep and hibernation off and a few other things.  It appeared for the first time after that:

    1. Do a restore of the system for the first restore point.
    2. Remove the DVD writer.
    3. Restarting the laptop.
    4. Research of new hardware in Device Manager .
    5. Change all parameters of standby and Hibernate off. (I tried this method without this step first, but the drive disappeared after the computer went to sleep and woke up.)  Tried 3 times with the same results).
    6. Closing.
    7. Reinsert the DVD burner.

    On the next reboot, the DVD writer has been recognized and ended up in my computer and Device Manager .  No errors of any kind and no drivers were installed at startup.

    What has happened since then, in the last 4 or 5 days, is randomly disappears from thedesktop .  Usually after a few hours or more.  This time, however, it usually appears inDevice Manager after a search of new material.  No reboot required.  It will read from a DVD .avi files each time.  It has not been detected byDevice Manager maybe about 2 or 3 times, and after a simple reboot, it will be present inmy computer and Device Manager automatically after a reboot.  I read that the superior/UpperFilter mark has worked for many people, but for some, the problem returns.  In addition, many of the discussions on this question and proofreading are years.  It happened about 10 days ago.  Within 2 days before the problem appeared first, it was an update of windows, but also an update of iTunes.

    I noticed that I received this error when opening iTunes:

    "The registry settings used by the iTunes for importing and burning CDs and DVDs are missing. This can occur as a result of installing other CD burning software. Please reinstall iTunes. ''

    I have not reinstalled, no DVD player.  Uninstalled itunes again.  Since I finally got the drive to appear (using the method I described above), I did bother to reinstall iTunes because I particularly need it on this computer, worried that it may be the cause of the original problem and I wanted to see if the disc disappears again.  I did do it, however, let QuickTime installed.  Don't know if this could be a problem?

    I stumbled upon this suggestion, but I also had the same question as the next post, and I have not seen a response.  I don't know if or how I should try:

    Nikki,

    You can not go back if the restore points aren't there. Try to reinstall the IDE driver.

    To do:
    -Click on the round to start and right click on computer
    -Left click on properties, this will open the system window
    -Click on device high Managerin left
    -Click on continue if prompted by UAC
    -Goto the 'IDE ATA/ATAPI controllers' you should right click on uninstall and restart

    BTW that dog rox in this avitar

    See you soon! MCP. MCDST. LVL 80

    Hi, thanks for the comment on my puppy. She is now 5 MB and her name is Nikki, lol.

    Well, I tried what you said, but the IDE ATA/ATAP controllers has a (+), so when I select it does give me not an option to uninstall. It is for me (analysis of the physical changes (or) properties).       and if I click on the (+) sign I have 4 different options. 2 channels IDE, Intel (R) 82801 HEM / HBM SATA AHCI controller and Intel(r) ICH8M Ultra ATA Storage controllers - 2850.

    http://social.answers.Microsoft.com/forums/en-us/vistahardware/thread/e3701d75-9dbe-4ae9-9d70-83f14129247c?Prof=required

    What I see in "Device Manager", under IDE ATA/ATAP controllers is:

    IDE channel (x 4)

    Ricoh Memory Stick Controller

    Ricoh SD/MMC Host Controller

    Ricoh xD-Picture Card Controller

    Controller of PCI standard IDE dual channel (x 2)

    The laptop is about 2 years and never had problems.  The DVD burner is hardly used to burn, maybe a total of 5 disks in this time.  It has been used occasionally to read or copy from, but not much.  I'm not convinced that he is dead, as I had 2 die on me in desktop computers, after burning hundreds of CDs in them and read much.

    in any case, I was not able to find any bugs or suggestions (with the exception of 'replace' the reader), so I just wanted to describe my specific situation and see if anyone could help out.  Forgive me for information, I have left out, but I am an amateur when it comes to the problems with the computer and still don't know what mean things or where I can get information on my OS, software or hardware.  All anyone can do would be greatly appreciated.

    This is the information I have:

    HP Pavilion dv6700 Notebook PC

    Optiarc DVD RW AD-7560 ATA Device

    Vista Home Premium

    Service Pack 2

    Thanks again for any help.

    Hello
     
    1. do you have the software installed on the computer of CD/DVD burning?
     
    Check if the CD/DVD drive is recognized in the BIOS (Basic Input/Output System).
    Step 1: We also recommend to uninstall the CD/DVD burning software, if you have everything installed, restart the computer and check the result.
    Scan for the device in Device Manager. To do this, try the following steps.
    1. click on start, type devmgmt.msc and press to enter.
    2. click on one of the items in the list, click the Action menu and click Scan for hardware changes.
    3. check if the CD/DVD is displayed.

    For more assistance on this, contact the manufacturer of the laptop.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.
  • I have installed the latest updates for my Compaq desktop computer and the DVD/CD drive bay door will not work.

    I have installed the latest updates for my Compaq desktop computer and the DVD/CD drive bay door will not work. I can get the led light will stop flashing when I open the door all the way, the machine detects the drive but do not read or close on its own, how can I get this disc surgery? Downloading updates, I installed a software disc, when I ejected the disc, the drive comes of is stopped. The computer still sees the drive, but will not read or even close on its own. I also had been using my computer in mode mute until I tried to increase the volume and now the computer tells me no playback device installed. Device Manager acknowledges the Harmon/Kardon soundsticks connected to it, but nothing does, how it works? The Control Panel also sees the soundsticks, but still when I try to move the volume the computer says there is no playback device installed.

    Hello

    1. do you get any error code or error message?

    2. what day you installed recently?

    It seems to be a problem with the hardware. I suggest you try to uninstall and reinstall the CD/DVD driver and check if it helps.

    Follow the steps to uninstall and re-install the drivers.

    a. click on start toreduce this includes this im and then click Control Panel.

    b. click system and Maintenance, click Systemand then click on Device Manager.
    Note If Control Panel is in Classic view, double-click System, and then click Device Manager.

    Reduce this includes this imageIf you are prompted for an administrator password or a confirmation, type the password, or click allow.

    c. in the Manager device, expand CD-ROM/DVD-ROM drives, right click on CD and DVD devices and then click Uninstall.

    d. When you are prompted to confirm that you want to remove the device, click OK.

    e. restart the computer.

    If the methods mentioned above did not help, then it would be best to contact the manufacturer of the computer/CD/DVD player.

    Hope the information is useful.

Maybe you are looking for

  • The song bought only downloaf

    I followed the instructions to dl a song bought from my library, but it does not work.  Do you know what to do

  • Disable the contacts Backup Wizard

    I am not too impressed with the way Backup Wizard works he changes my contacts and carefully their mess up adding names until the last and double them, I use google contacts and it works fine I really made a mistake to the activation of this how can

  • Aspire V15 Nitro - driver problems video

    Hi, I get a lot of video driver crashes. So I went to nvidia to download the latest driver to be sure to be up-to-date. But the nvidia Setup program indicates that the driver cannot be installed because my laptop uses a customized version! Why is thi

  • I can't find more Acer eRecovery Management help please

    I can't not find Acer eRecovery Management. I am unable to restore the system to factory default. I don't know if I deleted it by mistake or what. Could you please tell me how reinstatt it. John

  • CTRL-Alt-Del bring up the Task Manager

    CTRL-Alt-Del bring up the Task Manager