Are the touch events in new broken ripple?

Hello

I have a PlayBook application that uses touch events to shake things. I tested it in the stand-alone version of ripple and the physical device.

Now I think on porting the app to BB10, so I downloaded the verion of ripple Chrome and I found that in the waving of the new, I can't move any object!

I've identified the problem, but I don't know how to cope. Here is a small HTML file that shows the problem:

http://www.w3.org/1999/xhtml">



    
child

So basically there is a div container that listenes to the touchstart and if this event happens that it displays an alert. In the ripple of old (and on the PlayBook device) If you press the 'child' div the alert is also shown (the event is pushed down and intercepted by containers). In the waving again, it happens.

Any suggestions? I can force ripple action as does the Playbook? Maybe I should use another technique to capture touch events?

Hi razorek,

I'm not sure of the reason (his behavior of WebKit), but the propagation of the event using the AddEventListener method will allow when you use touchstart. Take a look:

http://www.w3.org/1999/xhtml">



    
child

Also, when using ripple for Chrome, please make sure that "Emulate touch events" are not verified, since ripple there are tactile own emulation system and it may come into conflict with it.

F12 (Open Developer Tools) > click on the gear icon in the lower right > Exceptions tab > emulate the Touch events. I'll also post this work around for that matter https://github.com/blackberry/Ripple-UI/issues/344 github page

Tags: BlackBerry Developers

Similar Questions

  • stimulate the touch event handling in PRC?

    I want to stimulate the touch event in another application. can someone help me in explaining to me with a code example.

    I'll pass on this one, whenever I give you an answer to a topic, change you what you wanted in the first place.
    First of all, you wanted to listen to the event:
    http://supportforums.BlackBerry.com/T5/native-development/touch-does-not-fire-for-Q10/TD-p/3026980

    Second, you were finally made in the PRC:
    http://supportforums.BlackBerry.com/T5/native-development/touch-event-handling-in-CPP/TD-p/3027043

    Third, you asked to simulate a key event in this thread I made.

    Now, this isn't what you want, you want to simulate a click on a button.

    I'll let someone else answer that one.

  • Convert Dialog.alert to handle the touch event

    Anyone know how I can convert my dialog.alert to handle the touch event

    Please help me = D

    You don't need - if you use the standard RIM dialogue he class shoud touch event itself.

  • QML: calculate the time interval between the touch events

    I create a custom button that is activated by a key event, in this way:

    Container {
        property bool pressed
        signal clicked...
        onTouch: {
            if (enabled && ! event.isMove()) {
                if (event.isUp() && pressed) clicked()
                pressed = event.isDown()
            }
        }
    }
    

    The problem with this approach is that if the user clicks the custom button several times in a short period of time the click signal is triggered several times too. This does not happen if I use a regular button or an ImageButton.

    I was thinking about getting the timestamp of the event and fire the only if clicked event grit touch after at least x milliseconds since the previous event. The DIF is that I couldn't find a way to calculate this difference in QML.

    Any suggestions?

    You could also follow the time of the last event with the Javascript date.

    lastTouched = new Date().valueOf();
    

    -Check if time has passed...

  • Are the touch screen and the LCD on the Acer Aspire V5 - separate 122P?

    Dear members,

    I broke the touchscreen for my Acer V5 - 122P when the laptop has fallen. I'm trying to find out how I can have it replaced. How much should I order? The LCD works but the touch screen is not. The touch screen and LCD are separated? Alternatively, they are integrated? I'm not a computer person, so please excuse my ignorance.

    Please notify.

    Kind regards

    SIPO

    [under the direction of privacy - please do not transmit personal information]

    Yes, the touch screen and LCD are integrated.
    Now, regarding the resolution of the issue you have with touch screen of your laptop, we recommend that you contact your support center closest to Acer authorized as there was physical damage to your touch screen. This will give you a better idea of the intensity of the damage that has been caused to your laptop and help explore a suitable resolution for the same.

    Learn more about the location of the nearest support center Acer authorized, you can contact Acer support via the following link:
    http://us.Acer.com/AC/en/us/content/service-contact

  • Nature of the touch events

    Hello ladies and gentlemen,

    I am currently working on activating the touch support to an existing application to my friends, and I'm running into some difficulties. My screen consists of a few: on the bottom, I have a row of BitmapFields acting as buttons all content in a HFM, above that I have a great EditField, and above I have a HFM with a few more selectable BitmapFields.

    First of all, I'm not sure that should be implemented in touchEvent(), my managers or the fields themselves. I tried both, but noticed a strange behavior. It seems that the field that currently has the focus Gets the touchEvent little anywhere on the screen, the key event occurs.

    I think that the OS would simply understand that touching an object simply focusable means 'set the focus to this item"and clicking on the object means 'click on this object', I don't think you should even implement the touchEvent() method to achieve this effect.

    Does anyone have experience of writing applications for the storm? Am I missing something?

    Thank you
    Tyler

    Thank you Rex,

    I did a search on "touchEvent" but did not find much.

    Oops, looks like I just got this job.

    Let me explain what I have in case someone else comes on this thread:
    -My screen has a 'top manager' who handles most of the items on the screen, including other managers

    -J' have a HFM at the bottom of the screen (which is managed by my Senior Manager) that contains several BitmapFields that act like buttons
    -The question I had was trying to setFocus in the appropriate field when this field was hit

    Here's what I added to my managers to manage events:

    protected boolean touchEvent(TouchEvent event)    {        //Figure out where the touch occurred on the screen        int globX = event.getGlobalX(1);        int globY = event.getGlobalY(1);
    
            //Determine if the touch occurred within the extent of this manager        if (getExtent().contains(globX, globY))        {            if (event.getEvent() == TouchEvent.DOWN)            {                //Get the position of the touch within the manager                int x = event.getX(1);                int y = event.getY(1);
    
                    //See if there is a field at this screen position                int fieldIndex = getFieldAtLocation(x, y);
    
                    if ((fieldIndex >= 0) && (fieldIndex < getFieldCount()))                {                    //Set the focus to the field at this position                    Field f = getField(fieldIndex);                    f.setFocus();                }
    
                    //Return false so that the event propagates to the contained field                return false;            }        }
    
            //Event wasn't for us, handle in default manner        return super.touchEvent(event);    }
    

    In addition, you must ensure you set the scope of your managers correctly, both real as virtual, I usually do when I'm in the override of the sublayout() method.

    Hope this helps people.

  • Yellow vertical line displayed on the touch screen of new printer Photosmart 7510.

    I have a vertical yellow line on the touch screen of my new printer Photosmart 7510.  The yellow line is part of the screen (pixels).  Install my printer on my XP Windows last night.  This is a new printer, right out of the box.

    This problem can be solved, or should I get a replacement?

    To help you better, if the printer is within the return period, you can contact the store you purchased at or if the printer is in warranty period for HP, you can contact HP phone support(1-800-474-6836) for a replacement.

  • How the MovieClip not to block the touch events

    Hey guys,.

    I'm trying to do something that should be simple.  I have a listener to button a button, this button has a MovieClip that is located on the top, so my button below will not receive the click event of the mouse.  How can I keep the MovieClip above the button but allow the mouse click event move to the button?

    Thank you

    Assuming you named the MovieClip "myMovieClip".

    To write

    myMovieClip.mouseChildren = false;

    myMovieClip.mouseEnabled = false;

    The ClickEvent must spend in the MovieClip safe and sound.

  • Where are the touch screen for HP Pavilion TouchSmart laptop drivers

    I have a HP Pavilion TouchSmart of 15-n210dx Notebook PC (ENERGY STAR)

    Need drivers for touchscreen, where are they?

    Found the answer, 2 buttons close (solution 4), work on several computer models/series courtesy of Windows. My drivers were hidden and not miss, everything works beautifully:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-hardware/no-pen-touch-input-is-available-for-this-display/74bc764d-347C-4857-95a0-5799d92c3bb9

  • Problem with the touch event

    Hi guys,.

    I overrided the onTouchEvent on the ground and the following code does not work for certain fields (all are focusable):

        protected boolean touchEvent(TouchEvent touchEvent)
        {
            if (getExtent().contains(touchEvent.getX(1), touchEvent.getY(1)))
            {
                if (touchEvent.getEvent() == TouchEvent.DOWN)
                {
                    down = true;
                    invalidate();
                }
                else if (touchEvent.getEvent() == TouchEvent.UP)
                {
                    down = false;
                    invalidate();
                }
            }
            return super.touchEvent(touchEvent);
        }
    

    Do you know why?

    Resolved. Need to check the limits of rect.

    Event is called only for a good INTERFACE control.

    Great!

  • Where are the videos recently added (new Apple TV, 64 GB)

    I mainly use my Apple TV to the floor to show my videos from my media server.  I add about 3 videos per week that I use to show my students.  On the old Apple TV, if you browse the 'computer', when you back out to the main screen, you can see recently "added".

    It of over, how do I add it back?

    Otherwise, I'll have to browse more than 150 videos to find my new videos as well as I have to memorize the names.

    YYou must ensure that enforcement "computers" is on the top row. These 5 apps will be the only apps to show recently added...

    to move applications, press and hold select until it stirs. Then move to the desired location.

  • What are the steps to install new disk for Compaq Presario Notebook 61-420US

    I bought a Western Digital Scorpio Blue 320 GB Sata Hard Drive to replace the original fried.  The drive is installed.  After turning on the laptop computer, the error message was "no boot device found".

    I turned off laptop and you press F2.  I am running a test drive, the first version short then long.

    What are my next steps?

    I have the HP recovery discs?

    Thank you!

    Matthew wrote:

    I bought a Western Digital Scorpio Blue 320 GB Sata Hard Drive to replace the original fried.  The drive is installed.  After turning on the laptop computer, the error message was "no boot device found".

    I turned off laptop and you press F2.  I am running a test drive, the first version short then long.

    What are my next steps?

    I have the HP recovery discs?

    Thank you!

    Hello

    The error message indicates that there is nothing to start, it means that an operating system is not installed, or the MBR is corrupted, that is not your case. The hard drive is ok, but you must restore the system using the recovery disks, you got.

    It's simple, change the startup option in the BIOS to CD/DVD-ROM as the first one (press ESC on startup, press F10), then you can insert the No. 1 disc in the optical drive recovery. Save the settings of the BIOS (reboot), then follow the instructions (click on factory reset). It worked for me that way...

  • What are the best practices for a new employee to learn inside the instance of their business of Eloqua as efficiently as possible?

    We have companies everything changed at some point in our lives. And we all go through the process in the first weeks, where you feel new and are just trying to figure out how not to get lost on your way in the mornings.

    On top of that, trying to familiarize yourself with your new company Eloqua instance can be a daunting task, especially if it's a large organization.

    What are the best practices for new employees to learn as efficiently and effectively as possible?

    I am in this situation right now. Moved to a much larger organization. It is a huge task trying to understand all the ins and outs not only society, but also of the eloqua instance, especially when she is complex with many points of integration. I find that most of the learning happens when I really go do the work. I spent a ton of time going through the programs, documentation, integrations, etc., but after awhile, it's all just words on a page and not absorbed.

    The biggest thing that I recommend is to learn how and why things are made the way they are currently, ask lots of questions, don't assume not that things work the same as they did with your previous employer.

    Download some base in place level benchmarks to demonstrate additional improvement.

    Make a list of tasks in the long term. As a new pair of eyes, make a list of things you'd like to improve.

  • OpenGL + MMR video playback and touch events.

    Hello BB forums natively,.

    We have an openGL application that renders the video using the window mmrenderer child. Surface OpenGL is transparent and makes some elements of overlay the video above. It seems that the touch events are only sent when it arrives on the non-transparent part of the surface of the OpenGL. Is there a way to catch all touch events in this scenario (perhaps of the child window)?

    Thank you!

    Ask yourself properly the events with "screen_request_events..." with the context of the correct screen?

    Did you look in the GoodCitizen OpenGL sample application? It shows how all the events are received and process across the entire screen with a very similar use case;

    Martin

  • Parents and children Touch - event management

    I have a container with some controls.

    I want this is notecard to the container code to run only if no child control has handled the event onTouch.

    Is this possible?

    Thank you

    Jamie

    I solved it.

    Here's how...

    First of all, there are two touch events, I have now, I understand as follows:

    'touchCapture' is received in a container before the spread of children take place.

    'touch' is received in a container after the propagation takes place.

    I've added a property to the container like this:

    Boolean touchHandled property

    I added handlers for the touchCapture and the touch, like this:

    onTouchCapture: {}
    touchHandled = false
    }

    Notecard: {}
    If (! touchHandled) {}
    Manage you like...
    }
    }

    If a child control manages the key event, I the child touchHandled set to true. For example, in one of the children, I manage a TOP event. I have code like this (in children):

    Notecard: {}
    If (event.isUp ()) {}
    Do all that...

    touchHandled = true
    }
    }

    Mission accomplished. Comments are welcome...

    Jamie

Maybe you are looking for

  • Restore backup possible without upgrade?

    So, there's the simple question to which I was not able to find an unequivocal answer: Can I restore my iPhone without having to upgrade to the latest IOS? It seems that when restoring the iphone tent/applications updated. I don't know if you can can

  • T8000 - Be used 80 GB HARD drive?

    Hello I bought the T8000-Notebook with BIOS Version 8.30. Now, I want to spend my hard drive to a 80 GB device. Is - it possible and it is then possible to use the set of 80 GB or is the motherboard not detect less than the 80 GB? Is it possible to b

  • Update disk on the Satellite M60-139

    Hello Forum friends and once again greetings from Cologne/Germany. Can anyone tell me what size I can switch the disk hard 80 GB of my M60-139 origin? I think it would be nice to have more space but I have heard that not every hard drive works with t

  • Sync iphone 6 with windows vista

    Hey I have an "old" computer to Windows vista and the latest version of itunes available is 12.1.2 It looks like my iphone6 may not synchronize with itunes 12.1.2? I have an error message asking to download an itunes update, but there is no update it

  • Distribution Kit for the CVI 8.0 missing files...

    We have a set of pre-built TestStand custom steps which consist of a DLL, ICO, couple of INI files of the IUR. A Kit of Distribution CVI 8.0 was created to install these files in the right places so that the development suite TestStand 3.5 can see IE