IBooks mouse and touch events

We have an issue with our interactive books on the ipad. We are using epub3, javascripts and event listeners. All interactivity works perfectly on the ipad using eventlistener for touch. When we download the book to mac-maverick-ibooks there is no issue with the mouse events working on the touch events.. Apple want the books to include javascript to handle both touch or mouse events for each device. We attempted to include mouse events with the touch events without success.  Does anyone know how to handle this.  This is a snippet of the code we triede to use without success.
var eventName = "click";
if (navigator.epubReadingSystem.hasFeature('touch-events')) { eventName = "touchstart"; }
if (document.getElementById('openpopup')) { document.getElementById('openpopup').addEventListener(eventName,popup,false); }

Many Thanks Richard.. sorry for the delay I was away traveling ..I havn't done anything to my pc as yet , but the problem seems to have gone... My son said it was probably because I put some new applications on and maybe this had something to do with it, but it seems to have sorted itself out now..but I will keep your suggestion ready incase it happens again .. thank you again Phil

Similar Messages

  • Windows 8 Mouse and Touch Events

    Came accross this issue where AIR runtime 3.8 (and 3.9 beta) on Windows 8 do not track mouse events correctly. Rolling back to 3.7, and publishing to 3.7 is the only way to have existing content work correctly when using a touchscreen.
    This also effects GestureWorks projects. TAP events are dispatched but SCALE, DRAG and ROTATE are not.
    Everything works perfect on 3.7 on Windows 8. 3.8 works perfect on Windows 7. But no 3.8 on Windows 8.
    I think this is a massive issue.
    Bug Report Created - https://bugbase.adobe.com/index.cfm?event=bug&id=3635216

    First, the rumor is that touch on the W540 will be available H1, but not earlier. If you look at Dell's M3800 with touch, they have delays until mid-March with their Retina touch panels, so it'll take a while for the W540 to be available with touch. It is also possible that the W540 won't be available with touch until Intel's Haswell refresh comes out, but who knows.
    Second, if you install the Windows 8.1 upgrade, please take care to check the "Brick your W540" thread, as there is something wrong with the bios and Intel Rapid Start-up Technology. It may result in your motherboard's failure, so disable RST before doing so.

  • In Flashplayer, I can crossover mouse and keyboard events. In IrfanView I cannot. Can this be fixed?

    My client uses IrfanView to play SWF files. Unfortunately, he does not use Flashplayer. In Flashplayer, I can crossover mouse and keyboard events with no problem. In IrfanView, the second I click a button, the keyboard events are disabled. Is there a fix?

    Hi Ned. I may have posted this issue a bit early, but this problem is also happening in Flashplayer 10. It's not exclusive to IrfanView.
    Here is something that I encountered during my testing, when I jump to scene 6 using the menu button, I have a play button to jump from one frame to the next frame that stops -- the keyboard events start working. But if all I am doing is jumping scene to scene with the mouse button, the keyboard events are disabled.
    I feel as if the keyboard events only work if I am playing frames in the scene. And if all I am doing is jumping scene to scene using the buttons, the keys will disable.
    I set up the mouse buttons inside a movieclip that all the scenes share. The mouse actionscript is in the movieclip. On the main timeline of each scene is an actionscript for the keyboard events, even though I had to change each function name.
    I feel the actionscript is setup pretty simple. I just wish clicking the buttons would not disable the keyboard events. This may sound redundant, but the keyboard events do the same thing if you use the mouse buttons. It's just preference for the client even though he will need to understand that using the mouse buttons override the keyboard events. He doesn't really lose functionality.
    Keyboard actionscripting below:
    import flash.events.KeyboardEvent;
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyEvent);
    function onKeyEvent(e:KeyboardEvent):void {
    var character:String=String.fromCharCode(e.charCode);
    if (e.keyCode==72) {
      gotoAndStop(1,"master");
    if (e.charCode==49) {
      gotoAndPlay(1,"Distributor");
    if (e.charCode==50) {
      gotoAndPlay(1,"Mirka");
    if (e.charCode==51) {
      gotoAndPlay(1,"Farm");
    if (e.charCode==52) {
      gotoAndPlay(1,"Check2");
    if (e.charCode==53) {
      gotoAndPlay(1,"Check3");
    if (e.charCode==54) {
      gotoAndPlay(1,"Scene2");
    if (e.charCode==55) {
      gotoAndPlay(1,"Scene1");

  • Capture All Mouse and Keyboard events even if java window NOT in FOCUS

    Hi All,
    Is this possible to capture all mouse and keyboard events even if java window is not in focus or is minimized. This java program should cature each and every event from the user once the program is started. Any help in this regard is appreciated!
    Thanks&Regards
    Sam

    I don't think you can. (without JNI)

  • Lock all mouse and keyboard event.

    i am looking ways to lock up all the mouse and keyboard events in windows...do u guy have ways to solve this?

    Do you mean that people should not be able to start other applications, or switch to other running applications, before they have typed the right password into you java program? I don't think that can be done in java - it requires more control over the computer than Java typically gives you. You may have some success with full-screen AWT, though.
    But why not use log-on-systems incorporated in whatever operating system you are using? Or some other netware thingie? Honestly, I think you are trying to reinvent the wheel, and even with tool that's not very appropriate.

  • Mouse and touch pad not responding/working?

    the entire touch pad doesnt work when using the computer. also when a mouse is plugged in that doesnt work either!...... but both work fine when in the lenovo help section, (when pressing the lenovo help button) they only dont work from the login section and when logged in.
    HELP!!!

    I am facing similar problem. However it is little different. My touch pad stopped working just within 3 months after buying this product. Now the problem is no body is taking responsibility of this kind of problems customers are facing. Here the real problem is my blue light at the touch pad has also stopped working.
    I believe it means, it must have some hardware problem. Now it is almost more than 8 months to this product and am still struggling with this problem. The only good part of it is, here my usb mouse is still working.
    One more thing i would like to know here, how can i find lenovo help key you mentioned in your querry? Please guide someone to get rid of this problem.

  • Binding Mouse and Key Events.

    Hi,
    When a user clicks the Ctrl + V the data from the clipboard
    is pasted into the user area. Instead of using this can we do it
    using a mouse click. For now, I am planning to bind the event code
    of these combinations (CTRL + V == 86) to the mouse click. But when
    I tried this I am unable to bind this key event to the mouse event.
    Can anyone help me out for getting out of this problem.
    Regards,
    eodC.

    No, it isn't.
    Kind regards,
      Levi

  • Weird mouse and keyboard events windows 7 @g550

    My windows 7, on laptop lenovo g550 behaves weirdly lately. After some casual run time i can't right click on desktop, start button doesn't respond, if i switch users and log in back to my user goes back to normal.
    Sometimes "c" or "v" keys do nut respond when i press them on firefox window but in adress bar i can write all fine...
    Some times same behaviour happens in different window. But when i switch users back again to my user via windows+L key its come back to normal. Please help )
    Scanned with updated anti virus nod, malware scanned with lavasoft adaware, cc cleaned. Drivers on gpu are latest, rest of drivers are updated and windows 7 is updated promptly.

    Yes, it also happens if I switch to a virtual console. In fact, I attempted to open a session on a virtual console (ctrl-alt-F1) the last time it happened, but I couldn't because my password wasn't logged correctly; the weird thing is, I could type the login name (for example, 'root' or my user name), but when I tried to enter the password it always returned an authentication error because the password was misspelled, or something. I also tried to reset the X server to see if it solved the issue, but I couldn't because the 'Alt' key was not working (when it happens, the only solution is to reboot from the GUI). Any ideas?
    Oh, and thanks for your comment about my desktop

  • Recording the input of mouse and keyboard outside of  a visible GUI

    I am trying to write something sorta like pc anywhere except I dont quite know how to approach the problem of recording the input from the mouse and keyboard. I have thought of using a glass pane the size of the screen but once I have captured the mouse or keyboard events how do I send them through to the underlying OS (as if nothing happened)?

    This is not possible in java. You should register to some native mouse and keyboard listener mechanism. and let them notify you of all the mouse and keyboard events. Maybe JNI can help you accomplish this.

  • How to handle mouse and/or keyEvents before JTable handles them

    Just studying Jtables, but I do not understand some principles. one of the problems is which method in which class do I have to overwrite, so that I can handle mouse and keyboard-Events?
    I believe,Using a glasspane is to complicated!
    CAn somebody please "put my nose" into the right direction ?
    Nice Sunday to You all.
    Thanks
    Hanns

    Look at JComponent. You can override the methods:
    public void processMouseEvent(MouseEvent e)
    public void processMouseMotionEvent(MouseEvent e)
    protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
    As of 1.3 the existing key events can be overwritten ( or you can add your own defined key events) by using input and action maps.
    You can add bindings for any keyStroke and add your own defined action this way:
    int i = JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT;
    m_table.getInputMap(i).put( KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0, false), "Tab - P");
    m_table.getActionMap().put("Tab - P", new TabAction());
    private class TabAction extends AbstractAction
    public void actionPerformed(ActionEvent ae)
    //define what you want tab to do here
    You can get rid of the key/keyaction this way:
    m_table.getInputMap(i).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), "Quit - P");
    m_table.getActionMap().put("Quit - P", null);
    You could use java's pre-defined action this way:
    Object tab_action_key = m_table.getInputMap(i).getParent().get(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));
    m_table.getInputMap(i).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "Enter - P");
    m_table.getActionMap().put("Enter - P", tab_action_key);

  • Mouse move to the edge of the tabitem and this will trigger mosueenter and mouseleave event again and again

    I have registered the tabitem mouseenter and mouseleave event, and when user move the mouse in tabitem a block will follow, if mouse leave the block will return to the original position. Now I meet a weird thing, when I MOVE THE MOUSE TO THE EDGE OF TABITEM
    CAREFULLY, the block will follow and return again and again. Have you ever meet this problem?
    void fe_MouseLeave(object sender, MouseEventArgs e)
    TabItem item = this.SelectedItem as TabItem;
    if (item != null && item.IsVisible)
    //block return to origin position
    BeginAnimation(item);
    void fe_MouseEnter(object sender, MouseEventArgs e)
    TabItem item = sender as TabItem;
    if (item != null && item.IsVisible)
    //block go to the mouse position
    BeginAnimation(item);

    The MouseLeave and MouseEnter are routed events and this means that your event handlers will get invoked whenever a child element of the TabItem raises any of these events, for example when the mouse enters and leaves an element that is part of the control
    template of the TabItem.
    You also need to understand that the entire TabItem is not a single UI element. It is for example made up of a header and a content panel and this means that there will be at least one MouseLeave and one MouseEnter event raised when you move the mouse pointer
    from the content panel area (which is made up of some elements) into the header area (which is made up of some other elements) and the other way around.
    You need to reconsider your approach here because the MouseLeave and MouseEnter routed events will be fired even when the mouse pointer remains inside the area that you consider to belong to the single TabItem.
    Please remember to mark all helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • How to implement drag and drop functionality in a HTML5 webpage using touch events?

    Hi all,
         I need to create a webpage having two parts.One part is having set of SVG images into it and other part is having canvas.I need to drag those image onto the canvas allowing same image for multiple times and those images on the canvas are movable inside the canvas only. This webpage is only used in iphone or ipad like touching devices so I need to handle touch events.
         There is already jQuery plugin for drag drop functionality but it is not supported for touch events.
    It is only for desktop veriosns.So if you know about any jquery plugin let me know.
         So please help me to carry out this task.

    I have tried using the same but still not working.
    I have handled touch events like touchstart,touchend,touchmove.
    But the problem is when I drag the image from upperbox onto canvas, the clone of that image is creating but the image which I dragged on canvas gets vanished.
    I am creating clone because I want to add multiple images onto canvas.
    Atik

  • Can Touch Events and Swipe Events exist in the same frame and/or movie?

    After having fully tested a file with touch events I decided to add both a touch event and swipe event to a frame.
    I started by importing the following statements:
    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    Multitouch.inputMode = MultitouchInputMode.GESTURE;
    I then added th appropriate code but only touch events worked. I fiddled so more and only the gesture events worked. So before I move any further, I'm wondering if I'm wasting my time trying to get them to work together.
    So my questions are:
    Can Touch Events and Swipe Events exist together in the same frame?
    Can Touch Events and Swipe Events exist scene?
    A reference to more information about this would be helpful, if you know of any.

    I am aware of the latest releases of the components along with the plug-ins.
    This note is applicable to your scenario but you might face some issues related to organization rule wizard, custom user group creation and EAM DB log collection, as mentioned at the bottom of the note. No matter on what SP level you are with GRCFND_A at 10.1, you would face these issues.
    And so far, i don't think there is any more update from SAP on co-existence of plugins of 5.3 and 10.1
    Ameet

  • Detect "touch start" and "touch end" event in windows phone default browser.

    Hi,
    We have a BIG problem, because in all browsers we can detect the "touch start" event and "touch end" event. For iOS, firefox, internet Explorer, safari, Android work well. But in the windows phone default browser the "touch end"
    doesn't work.
    Do you know what we can do ?
    Thanks.

    Hi gogogate,
    >>But in the windows phone default browser the "touch end" doesn't work
    There is no simply way to achieve this, in my experience, I would recommend that you can handle touch event using JavaScript and retrieve information you need form the webpage using the window.external.notify(string) function:
    https://msdn.microsoft.com/library/windows/apps/br227713
    #How to receive information from the WebView
    http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN5
    About how to handle touch event using JS, please refer to this article:
    http://blogs.windows.com/buildingapps/2012/11/15/adapting-your-webkit-optimized-site-for-internet-explorer-10/#step4
    You also need to inject javascript into the WebView page, please read this article:
    http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN6
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [iPhone] Touch event and countdown timer

    Hi all,
    in my app I want to have a uilabel in my mainview which displays a countdown from a chosen number of seconds. This shouldnt be too hard. But now comes the clue. I only want the timer to start the countown when there are no touch events at all. So every time the user clicks a button, changes to a different view or does anything else the timer should start counting down from the begining again.
    How would you do this?
    How do I termine if there is a touch event anywhere in the app?
    Do I use NSTimer?
    Thanks for taking your time and making thoughts!

    From what you've said, you are going to decrement a variable every second unless the user does something on the screen, right? If so...
    Create your variable and set it to the starting value, say, 10 seconds.
    Set up your timer to call a given method (@selector:myCountdownMethod) every second.
    The method should decrement the counter every time it is accessed (i.e. every second), then update your UILabel. It should also handle what happens when the counter hits zero.
    Next, your touchesBegan method should simply set the counter value back to its original starting value, i.e. 10. The timer will still trigger every second and decrement the counter, it'll just never hit zero unless the user doesn't do anything for 10 seconds.
    Hope this helps.

Maybe you are looking for