scrollTop property will randomly 0

I implement a pull down to refresh the functionality of an application. I have used and tested the code of an example application here:

https://github.com/BlackBerry/BB10-WebWorks-samples/tree/master/PullDownToRefresh

During the test of the sample application and my request on a simulator bb10, I noticed that property scrollTop of the parent div that contains the div "pull to refresh" seems to pass 0 at random points. This leads to the animation of the arrow of jitter and sometimes causes demand to believe that the user pull is no longer.

I think maybe it's because I'm using a simulator and the mouse is not correctly simulate a touch event but I don't know for sure since I don't have a z10 camera to test the application on yet. Everyone knows about this problem?

I ran the sample application on a simulator and property scrollTop of the element "scroller" inside the listener of events scroll, here are the results:

scrollTop: -29 app.js:3
scrollTop: -33 app.js:3
scrollTop: -36 app.js:3
scrollTop: -38 app.js:3
scrollTop: -46 app.js:3
scrollTop: 0 app.js:3
scrollTop: -54 app.js:3
scrollTop: 0 app.js:3
scrollTop: -64 app.js:3
scrollTop: 0 app.js:3
scrollTop: -76 app.js:3
scrollTop: 0 app.js:3
scrollTop: -84 app.js:3
scrollTop: 0 app.js:3
scrollTop: -88 app.js:3
scrollTop: 0 app.js:3
scrollTop: -89 app.js:3
scrollTop: 0 app.js:3
scrollTop: -88 app.js:3

It seems that this div element's scrollTop property jump to 0 at random times when I pull it down. The same thing is happening with my application. I ran on the 10.2.1.1925 simulator. Version 10.2.0.1791 Simulator showed similar results.

Tags: BlackBerry Developers

Similar Questions

  • My Airport Express will randomly start flashing orange and I have to unplug it to make it back to the green.  Wifi continues to operate even when the light is orange flashing.  Anyone know why this is happening?

    My Airport Express will randomly start flashing orange and I have to unplug it to make it back to the green. Wifi continues to operate even when the light is orange flashing. Anyone know why this is happening?

    The next time you see the flashing light amber...

    Open Finder > Applications > utilities > AirPort Utility

    Click on the image of the AirPort Express

    If you see a button update, click on update the firmware on the airport

    Otherwise, find status and click on the little orange dot it. A message will appear to say why the airport complained and suggest a remedy for the issue.

  • Airport Extreme will randomly does not

    My last model Airport Extreme will does not randomly (and too often)...

    Customers always show connected but do not have access to the internet. iOS/mac devices can * usually * connect via the utility, bouncing the router and all is well.

    There are sometimes a lot of time for the most convenient airport address connection and allow access. (Enter the password and nothing happens for a period of time...)

    I'm a computer programmer, so I've done enough tests (check connection directly on the Arris DOCSIS 3.0 SB6141 SURFboard Modem) to be * reasonably * confident, it's the most convenient airport and not the modem or my ISP (Comcast).

    There are usually about 2 dozen of connected devices (PC, tablets, phones, Roku, PS4, etc...), but at some point, only 6-8 are actually active.

    Any ideas/suggestions would be appreciated...

    If you have not yet tried, reset the extreme > reset a FAQ of base station airport

  • File object property will not write as digital 0 in TS 4.1.1

    Hey everybody,

    So, I came across a weird problem and I was wondering if it was a 'feature', or if I'm missing something.

    Basically when I write a digital 0 to a file property object, using the Write method of the API, it doesn't seem to be written.  I enclose a simple example of what I want to accomplish.  Here are the steps of reproduction:

    1 - Open the movie file in TS 4.1.1

    2. run the sequence

    3 ignore the error the first time, it appears up... it has to first create the file.

    4. insert any value other than 0

    5 - run the new order (shouldn't get an error this time)

    6 see if the returned value is the same as that in which you initially set

    7-type 0 as the new value

    8. run again the sequence (no still no error... assuming you did it right)

    9. see if the returned value is 0. If you see what I see that it is not 0, this will be your original value.

    Any thoughts are appreciated.

    Thank you

    Jigg,

    If you use the ReadWriteOption RWOption_EraseExistingObject or RWOption_EraseAll when writing to the file, you will get the behavior, you need.

    The cause belongs to two.

    (1) one who is to minimize the consumption of storage space and files and to maximize speed, TestStand generally does not write default values. When reading in a file, if the value does not exist, it is assumed to be the default value.

    (2) without the readwrite Erase options, when you write to an existing file, it just adds new information to the file and does not delete the old information. For example, without erasing it would also leave previous subproperties writes to the file too.

    It is a reasonable argument to make that when you write a property with a default value, a default value already stored in the file should be deleted. I'll save this issue for future investigation, however, you really should be using one of the options delete anyway as I doubt you want to subproperties of previous writing be kept in the file either.

    Hope this helps,

    -Doug

  • Whenever I have anything open, it will randomly be deselection as if I clicked outside the window when I don't have

    I'm having a little wrong to describe this problem. Whenever something is opened, whether it's a pdf file, web browser, etc., at random points in time everything I use will be deselected as if I clicked on the desktop to stop control everything that is in the window/app, when I have not clicked out of it. It is as detailed as I can do, I don't know much about computers and can find no solution in the forums. Thank you!

    Hello

    You have a laptop by chance? Looks like you're accidentally hit the touchpad with your finger and therefore the development of switching away without realizing it. Its similar to the problem people have when the slider appears 'magical' jump to somewhere else than where they type. If it's happening that the only real cure is to disable the Touchpad and external mouse (which is what most people do).

    If it is what do you want / need for instructions to disable the touchpad? Post here with what I can do for you.

    Kind regards

    BearPup

  • IPhone will randomly go no Service when it is locked

    Sometimes, when I have my iphone locked 5s, the service will say 'No. Service' and then when I unlock the phone it comes back as "AT & T", why this is happening? I usually great service in my area also.

    A question, where are you located? It seems that AT & T has done a few upgrades network lately. I read on the forum here of a user having problems on the market of Portland, in Oregon, and I experienced a few problems in the Chicago market. You can check with AT & T or you can use their app on the phone, marks the point to send information to AT & T on the problems in a certain place.

  • Windows 8 will randomly crash with BSOD

    My laptop Acer keeps restarting with BSOD. Ive tried refreshing and rearming windows 8 without result.

    According to the instructions in the thread BSOD I download a zip with the MSINFO file and the the accident dmp file.  The zip file can be found here https://drive.google.com/file/d/0B7xzCvOBhOAYaVdZcUZXX0VHMUU/view?usp=sharing

    The BSOD throws a KERNEL_DATA_INPAGE_ERROR sometimes and sometimes other errors.

    Please indicate how I can solve the problem.

    Thank you.

    First of all, you need to update to win 8.1 which, in itself, can solve the problem.

    Secondly, you have several applications of malware (McAfee and Symantec) and is never a good idea.  I remove the two and use the built in Defender in its place.

    These accidents were related to the corruption of memory (probably caused by a driver).

    Run these two tests to check your memory and find which driver is causing the problem.  Launch auditor.  You don't need to run memtest again unless the auditor is not the cause, or you want to.

    If you are overclocking anything reset by default before running these tests.
    In other words STOP! If you don't know what it means that you're probably not  


    1-Driver Verifier (for full instructions, see our wiki here)

    2-Memtest. (You can learn more about running memtest here)
  • My Modem will shut off randomly?

    Hello! My modem will randomly turn off and on again while I am browsing on the internet. The type of modem that I use is an Arris, I think, and the type of wireless router that I use is a Belkin wireless router.

    I hope someone knows how to solve this problem!

    Thank you!

    -Gardner Kenya

    Hello

    If the Arris modem automatically off, you should check with the support of Arris. Maybe
    firmware update might help.

    ARRIS - Support
    http://www.arrisi.com/support/index.asp

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Loop that captures the random image files does not

    Hello, I am currently having my Select program from a random assortment of images in the file, and each of them is labeled Transition1, etc. Transition2. Each instance of the symbol is named transition1, transition2, although only 4. 4 symbols are another symbol with the name of the TransitionImages instance. For some reason when I run the program it is not put the files in the symbols as well.

    Stop();

    var checkNumberArray:Array = new Array;

    var transitionimageLoader:Loader;

    var transitionImageNumber:Number;

    var currentMovieClipTransition:MovieClip;

    for (var i: Number = 1; i = 4; i ++) {}

    currentMovieClipTransition.name = "transition" + i;

    transitionImageNumber = Math.floor (Math.random () * (1 + 4 - 1)) + 1;

    function transitionloadImage(url:String):void {}

    / / Set properties on my Loader object

    transitionimageLoader = new Loader();

    transitionimageLoader.load (new URLRequest (url));

    transitionimageLoader.contentLoaderInfo.addEventListener (ProgressEvent.PROGRESS, transitionimageLoading);

    transitionimageLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, transitionimageLoaded);

    stage.addEventListener (Event.ENTER_FRAME, transitionFixImage);

    }

    transitionloadImage ('Transition of' + transitionImageNumber + '.jpg');

    function transitionimageLoaded(e:Event):void {}

    / / Load Image

    TransitionImages.currentMovieClipTransition.addChild (transitionimageLoader);

    }

    function transitionFixImage(e:Event):void {}

    TransitionImages.currentMovieClipTransition.height = stage.stageHeight;

    TransitionImages.currentMovieClipTransition.width = stage.stageWidth;

    IeClipTransition.width TransitionImages.currentMovieClipTransition.x = stage.stageWidth - TransitionImages.currentMov;

    VieClipTransition.height TransitionImages.currentMovieClipTransition.y = stage.stageHeight - TransitionImages.currentMo;

    }

    function transitionimageLoading(e:ProgressEvent):void {}

    / / Use to get the current download progress

    }

    stage.removeEventListener (Event.ENTER_FRAME, transitionFixImage);

    }

    The name of the instance will not transition1, the name property will be "transition1.  If you have worked with AS2, AS3 name property is not the same animal, it's just a property.  To target something to use it, you can use getChildByName ("transition1").  Your target clearest object is the var that you used to create it.  You can always do, what store these var references in a table and use the table to target.

  • 6 s iPhone randomly restarts after updating iOS 9.3.5?

    Yesterday I updated to iOS 9.3.5, and today it will randomly restart 3 times. What he does everything first, is that when he makes a phone call or notification, it turns to a screen color static, fades and restarts. It's getting very boring, I already have ideas of devaluation.

    I'm new to this, I don't know where I should post this. Forgive me if I posted this in the wrong community.

    You posted in the right place...

    Try to hold down the Home and Sleep/Wake buttons at the same time for about 15 seconds, until the Apple logo appears. You won't lose anything.

    If that doesn't help, try a system restore. First save your device via iTunes. Also import your photos on your computer and copy all the data if possible. Reconstruction of the support first test and test. If this does not help, you may need to restore as a new and reconfigure from scratch as the backup may be damaged. It is important to have your photos and your saved data separately from the backup. Here are the steps for a restoration:

    https://support.Apple.com/en-us/HT201252

    If the steps above do not help, you may need to test in an Apple store.

  • Screen randomly flashes white with colors

    Hello. My flash white screen will randomly with mixed bright colors. It happened today after I logged in. He arrived about 6 or so times. The hard drive has been replaced last year. Any suggestions?

    Is this a Macbook Pro or Mac Pro?

    More info about your computer would be a great help.

  • G6-1d46dx against the overheating/Random Hybernation

    This was a little over a year since I bought my g6-1d46dx. So far, the only problem I had was a defective CPU and the radiator. At the time where my computer was under warranty and it was reparied quickly. Now, my laptop will randomly in hybernation. I guess it is due to overheating, but I could be wrong. I checked and all the fans seem to work fine and it apepars to be no blocking. Because my laptop is more warranty which can do to solve this problem? Any suggestions?

    Hello FrankFontaine.

    First of all, make sure that you cleaned all areas covered in this document.  This will make the cooling system is free from dust and debris.

    In addition, update your BIOS to the latest version.  Here is a link to the latest BIOS for your laptop.

    In addition, it wouldn't hurt to perform Diagnostics on your hard drive and memory.  This document covers testing the hard drive.

    I would like to know the result and have a wonderful day.

  • Time Capsule randomly disconnecting Internet

    My light on my Calsule time will turn orange and will randomly stop to connect to Internet for seconds or hours or even days. Have cycled power, factory reset and set up a new Wi - fi network several times, but it still does not work properly. Any help is appreciated.

    Unfortunately, not much info here at all to go. We need basic information... things like...

    What model of Time Capsule?

    Approximate age?

    How long time Capsule work OK until this problem appeared?

    You use a Mac or a PC to put in place the time Capsule?

    This computer is running which operating system?

    What to do and the model number of the modem are you using?

    You have swapped the Ethernet cable between the modem and Time Capsule?

    Do you have connected to your computer directly to the modem and let it run a few days to look at the link in this way to see if the Internet happen like that?

  • How ENUM as TDMS property of reading / writing?

    LV2103, Win7

    Old road to LabVIEW, new brand tiara.

    I need to convert a structure of arbitrary complexity in properties, suitable for writing in a PDM file, in such a way that they are recoverable and (hopefully) to be readable by humans, such as whn, the file is loaded in tiara.

    I have most of it works fine, but I have trouble with ENUMs.

    An ENUM can be converted to a VARIANT very well, but that the alternative of writing to a file produced error-68007.

    A simple test shows this:

    The encoding process is quite simple - given a generic control Ref, just look at its CLASS ID.

    If the ID is one of those basic, just get its value in as a variant and add the berries of NAME and OWNERSHIP:

    If the element is a CLUSTER, then the controls that it contains and make them one by one:

    If the control is a TABLE, it is a little more difficult.  Since there is no way to obtain a reference to an arbitrary reference, you must use a reference to an item that you have.  To use it, you must show one and the same element.  This code is that, while restoring the original notice:

    HOWEVER

    ENUM, as I said earlier, converted to VARIANT very well, but TDMS will not accept it.

    Here's a technique that works, sort of:

    By converting the enum in an I32, you get the digital value from its current location and can put that into a Variant.

    During playback, the digital value will set the ENUM control correctly, so that's good.

    The problem is in the tiara, the property will look like:

    Whatever_Engine_Cycle 2

    Even if this is true and read back OK, he doesn't tell the user what kind of cycle is.

    The point of ENUMS was to put names to specific numbers.

    I tried to convert the variant to a STRING instead of an I32, but occurs 1057 (IIRC): "cannot convert a Variant to the specified type.

    A similar problem exists for controls TEXT RING - although they will go through the process, without error, what appears is a number.

    Any ideas to make the DIAdem display the string value of the ENUM, instead of a number?

    The error that says no "recognized by this version of LabVIEW" - is LV2015 to be more smart about it?

    Nice post clear! We will try for an elegant solution.  I think you're halfway there!

    You know the ID of class its an enum so get the credits of enum

    This may not work with the type defs, I leave that to you.  Rings and rings of text can be manipulated simillar

    Edit: Of course move up the chain to the variant

  • I have a virus protection, secure, said complete analysis but I still get random blue screens and computer freezing or cutting

    I have Microsoft Security Essentials and am pretty sure that I have downloaded all the tools provide it free. However, my computer will randomly do the blue screen once in awhile or close on its own without no reason.

    What should I do?

    Microsoft Security Essentials is a security software. It does not solve the problems with the operating system that leads to a failure of the operating system (blue screen) which can be caused by many things.

    I'm moving your question to the forum of Windows system repair section, but you will need to provide much more detail so that everyone to not even start you help.
    -steve

Maybe you are looking for