Prevent viewport scrollbar outside

Hi guys,.

my application adjusts automatically to 100% of the width and height of the device. As needed my application incorporates scrollables DIVs for the greater content.

But still: If the user calls top-down or bottom-up anywhere in my application, the usual (ugly) browser-gray background is displayed.

This behavior can be useful in the browser, but not in applications WebWorks, right?

So: is it possible to stop the scrolling of the window of the browser? I mean something like the metatag 'viewport '...

EDIT: I'm talking about the SDK WebWorks PlayBook & emulator in the newer version.

From my experience, it does not scroll through button move unless it contained outside the viewport, even if its one pixel out. So if the application is 100% then it shouldn't scroll - I go down that road myself and do not remember having a problem with scrolling of the page.

If you do not find a solution, and you don't want to scroll to all put an event on the touchmove event listener and cancel the default behavior.

I found that divs with overflow: auto; are pretty buggy, they either scroll to about half the speed of the movement of the finger, scroll eratically or navigate in random directions. I hope that this is a bug in only the latest version of the Simulator, and later versions or release finished products behave. It is so bad that at one point, I was contemplating writing my own Manager scroll to these divs, but never really looked into it, instead, I changed the interface to better understand how WebWorks is behaving at the moment.

Rather than overtaking ability to div I would seriously consider a redesign of the interface for the best costume the device, if you thought of porting the app for BlackBerry phones or other devices of the companies then the solution of the div embedded may not work as well as expected.

In any case if you want to go this route then you must put something like:

document.ontouchmove = function(e) {
    e.preventDefault();
}

On everything except the scrolling Div, you may be able to put on the body and then to restore the default sort to the div

-Ryan

Tags: BlackBerry Developers

Similar Questions

  • How do prevent you loggging outside compuer?

    If I leave one computer ny for a certain period of time, it disconnects automatically. How can I stop this from happening?

    Hello

    Click the Start Menu, type personalization and hit enter, click on the link of screensaver at the bottom right and in the next window, Remove the tick from the box "in»the logon screen curriculum vitae  Click on apply, then Ok to save the change.

    Kind regards

    DP - K

  • addChild() display the Clip outside the parent company

    Hello

    I use the addChild() method to add a nother of Slim Movie Clip we.

    MC1. AddChild (MC2);

    But once the Clip is added (and the second Clip is higher than the first) and then it is displayed outside the first Clip. Is there a way to prevent to display outside the parent company?

    Thanks in advance,

    Joe

    Not quite sure what you mean. If you mean you want to restrict the edges of the additional child to stay inside the mother, then you'll want to use a mask. If this isn't the problem, please explain better.

  • How to stop updates of Firefox

    So we have this system of helpdesk at work called cure (I make no bones about this, it should be called disease at least in the form my company has put into it) but that's what we have, I can't change that. I generally use Chrome to create changes in the remedy, but I need to use Firefox to create work orders because Chrome doesn't handle well in the menus of the repair.

    Now, Firefox, which is my browser of choice in all other circumstances, work well with the remedy (I'm not convinced that anything done) and when it updates, currently at version 39.xx, he continues to work with the cure... something to do with the different-Hellman encryption. I can solve this problem by reinstalling v38.05 but then it puts day and goes pear shaped. So I uninstall and reinstall and it works again... until it updates.

    The solutions I've tried are (each time preceded by a version 39.x uninstall and reinstallation of v38.05):

    1. in the Firefox Options / Advanced assured that "never search for updates (not recommended: security risk)" has been selected.

    2 custom install Firefox v 38.05 with no maintenance service (the above, Options / Advanced settings seem to be maintained throughout the uninstall/reinstall).

    3 custom install Firefox v 38.05 with no service maintenance and that all executables and dll read-only. Once again all of the above is the same.

    4 custom install Firefox v 38.05 without maintenance service, deleted the files maintenanceservice.exe and maintenanceservice_installer.exe from the Mozilla Firefox folder and renamed updater.exe updater.old. Go to help / about Firefox and deliberately run an update. This "installed" but, the browser is restarted, brought a dialog box saying there is a problem (I don't remember the message). Allowed the browser to download the new full version, which forced a second reboot and an error dialog box that I then closed.

    5 restart Firefox after you create a file user.js in profile folder that contains:
    turn off the updates of the application:
    user_pref ("app.update.enabled", false);

    6. check about: config is disabled for the automatic update:
    App.Update.auto - false
    App.Update.Enabled - false
    App.Update.Silent - false

    That's all... all this absolutely does not prevent updates of Firefox and, as far as I can tell, I did almost everything it is humanly possible to prevent update Firefox outside ditching it completely (which I certainly don't want to do) but there seems to be no way I can stop the update of Firefox.

    I'm sure it's 'fault' of BMC Remedy, but I can't change what makes the company, I'm just a small cog in a big machine, but I can't (or should be) change things on my own system. I can not just when it comes to Firefox which, in addition to being frustrating, no sense... why the Mozilla team would create a product with options to stop the updates that the application simply ignores?

    Keke

    Well, hang on, it sounds as if the real problem is that the server tries to use an obsolete encryption encryption algorithm that is vulnerable to the attack of the impasse that was in the news earlier this year.

    What does that mean?

    Even if you trust the server, a "dead end" attack compromised the security of your individual connection on the server, a lowering of the protection normally provided by SSL to a level that is easily cracked and read by others on the network. This is why Firefox protects you to establish this connection.

    What can you do now?

    The best solution is to update the server. Please ask for the protection of everyone! However, I suspect this is out of your control and could not happen soon. To work around the problem, you can try to disable these old ciphers in your Firefox, which I hope it will force the server to try some more secure encryption algorithms when connecting with you. Here's how:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste dhe and make a pause so that the list is filtered

    (3) double-click the preference security.ssl3.dhe_rsa_aes_128_sha to true to false (disable Firefox to use this encryption)

    (4) double click on the security.ssl3.dhe_rsa_aes_256_sha preference from true to false (disable Firefox to use this encryption)

    Try again the server; You may need to reload the page using Ctrl + Shift + r to ignore information in cache.

    Success?

  • BlackBerry Z10 security - Virus and data theft

    1 is the Z10 as an Anderoid device, if you want to install the software for the above

    2. the Z10 has "Bullet Proof" protection to prevent the foregoing, outside encryption

    Hello

    Afterburner1 wrote:

    1 is the Z10 as an Anderoid device, if you want to install the software for the above

    N ° BB10 (it's the operating system that matters, not the physical device model) contains a player "Android", which is essentially a shell in BB10 in which many Android apps can run.

    Afterburner1 wrote:

    2. the Z10 has "Bullet Proof" protection to prevent the foregoing, outside encryption

    BB remains the safest devices available on the market. But whoever does any absolute guarantee of 100000% (including your words "Bullet Proof" would seem to require), IMHO, would be a big mistake. The only secure device has no keyboard, no display, no mouse, no USB, no BlueTooth, no WiFi, no not cord... no possibility to connect to what it is... of course, which makes it quite useless at the same time. So perfect security is, IMHO, a goal... this goal is something that only time can turn out. BB remains, as I say, the more secure device available on the market. But promising perfection would be madness.

    Good luck!

  • Prevent outside access to a form of Eloqua

    I have an email campaign targeting a select list of contacts and you want to only allow these contacts go to the landing page.  E-mail links have a query string that I can check and block foreign access to the landing page via a direct url.  However, if the planned contact had to follow the message to a friend, that won't stop the friend access to the form that the query strings would be present.

    As a second check, I could use contact data searches and compare the e-mail to E-mail contact provided, but if they are on a new machine and that you do not have an Eloqua cookie, then this would not solve the problem. Since it is a sort of re-engagement campaign, they are relatively old contacts and this could be the case.

    I'm looking for ideas on how to frame this problem and solve it for as many opportunities as I can.  Please post ideas or answers if you have.

    Thank you

    Donald

    Thank you to those who submitted ideas for this problem.

    I solved this problem using strings of query on the links in the email that go to the screen.  To ensure no outside access, I use JavaScript to check the query string and if it is not present, I redirect them to the home page of the client. This will prevent any external links to access the form.

    In addition, when someone receives email (they'll will receive an email for every single product they have purchased), click and send the form, they are placed in a contact group for the single product via a processing step.  I then use the research data of contact group when the form is responsible for checking that the contact is not in the contact group for the unique product specified in the query string by e-mail.  Are they in the contact group about the unique product, then I redirect to the homepage of the customer.  This method makes sure the contact can access only the form once for each unique product.

    Hope this is very convenient for someone on the road facing a similar problem.

    Donald

  • How we prevent scrollbars on spreads with an Image on the two Pages?

    Has anyone noticed that a spread with a large image (or graphic) stretching across two pages creates a vertical scrolling between two pages, whenever the iBook Viewer window size is adjusted? No idea how to prevent this? I guess I have to divide my images into two halves?

    In the EPUB export dialog box, select: "convert across landscape Page.

  • Layer mask to prevent students from going too far outside the head on atypical forms of head

    For example, a frog head straight research has plenty of space to just cover your students should I look too far. If some sort of code called mask would keep another layer of screening outside it would be awesome!

    Thanks for the request. Have a mask clipping support or equivalent to deal with students is something that we are considering. For now, you might be able to diminish the value of the parameter eye gaze strength (in the behavior of face) in order to reduce the distance.

  • Flex 4.6 Mobile Scrollbar optimization prevents the scroll position layout?

    Hi all

    With the release of flex 4.6, it seems that the mobile version of the wheel has been optimized. Now the wheel differs from creation of the scroll bar until the user interacts with scrolling... That all sounds good performance wise, faster page creation etc...

    But if I want to return to the position of the wheel before the user has interacted with the subject, IE to access particular viewpoint before you start to scroll, I don't know what to do. Initially I would have something like... myScroller.horizontalScrollBar.value = 100... but courses myScroller.horizontalScrollBar now has the value null.

    Am I missing something - y at - it another way.

    J

    OK found a work around...

    I extended the scroller class and added a few features such as...

    public function scrollerCreateHScrollBar (): void

    {

    If (! this.horizontalScrollBar & this.horizontalScrollBarFactory)

    {

    this.horizontalScrollBar = HScrollBar (this.createDynamicPartInstance ("horizontalScrollBarFactory"));

    Group (this.) Skin). AddElement (this.horizontalScrollBar);

    partAdded ("horizontalScrollBar", this.horizontalScrollBar);

    }

    }

    then called to create bars of the amine, when I want to that they...

    Hurra.

    J

  • Prevent capital letters on UIComponent

    Is there a way to prevent scroll bars automatically appear when some DisplayObject is moved outside the viewable area UIComponents?

    I have a box with a canvas and finally a UIComponent with 2 images and an installation of the Transition program to move the images on the page during the passage in that State and a transition to move off the power during the transition from this State. However, when the images are moving out of the visible area, one of the parent containers displays scrollbars for a brief second as drag images. I want to make this stop.

    "Mike Bauer" wrote in message
    News:ge4fn7$EBI$1@forums. Macromedia.com...
    > Is there a way to prevent scroll bars automatically appear when
    > some
    > DisplayObject is moved outside the viewable area UIComponents?
    >
    > I have a box with a canvas and finally a UIComponent with 2 images and one
    > Installation of transition to move the images on the page when you move in this
    > State.
    > and a transition to move off the power during the transition from this State.
    > However,.
    > when the images are moving out of the visible area, one parent
    > containers
    > displays scroll bars for a brief second, as image slide. I'd do it
    > as
    > to make this judgment.

    horizontalScrollPolicy = "off" verticalScrollPolicy = "off".

  • How can I prevent a website from the removal of the Favorites toolbar in my browser?

    Is there a site that I need to visit for work reasons. Unfortunately the site deletes my favorite tools of Firefox and my menu bar (File, Edit, View, etc...). Is there a way to prevent this site to change my browser like that?

    A Web site should not be able to change the interface of the browser. Is the change just in pop up windows? You can prevent those with dom... settings in topic: config.
    DOM.disable_window_open_feature. Rental-> true (address)
    DOM.disable_window_open_feature. MenuBar-> true (menu bar)
    DOM.disable_window_open_feature.personalbar-> true (bookmarks bar)
    DOM.disable_window_open_feature. ScrollBars-> true
    DOM.disable_window_open_feature. TitleBar-> true
    DOM.disable_window_open_feature. ToolBar-> true (navigation bar)

  • Prevent users to restore it to factory settings

    I was wondering if it is possible. At the moment no matter what standard user with a legitimate password is able to press F8 when windows is loaded, enter repair and restore default computer. Is it possible to prevent ordinary users to do?

    @arachnologist,

    It is not really an official way to avoid a full recovery of the system is carried out.  By resetting the system to factory default, I assume that you are referring to the F11 system recovery provided by HP which would amount to one out of the condition of the box.

    Because this process occurs outside of Windows, set permissions or changes within windows itself will not prevent this.  However, you could do that you have to work the recovery disc for the unit and then remove the recovery partition.  Deleting the recovery partition would eliminate the easy way to restore the default unit for the recovery partition (where the factory reset retrieves the files from) will be missing.  However, this is how a user can reinstall Windows if something goes wrong, and this is why I recommend to have on hand recovery disks somewhere safe.

    Alternatively, you can also define a power on password for the unit.  A power on password is set in the BIOS under the security heading.  With a power on password, only one person knowing this password might even get beyond the screen of the BIOS to reset the system or start any device (CD, USB, HARD drive, etc.).  Be sure to remember this password as you would for any other password.  Remember that this is not without its risks.  For example, a forgotten password power can be difficult to overcome.  Due course and according to the device (laptop, desktop computer, business unit), it may be not so easy or cheap to clear a forgotten password market.

    The solution with the least risk, in my opinion, would be to remove the recovery partition.  This document explains how to do this.

  • Would PREVENT you automatic updates and other changes

    JO 8600 Pro.  Configuration of the wireless network.

    I want to prevent the automatic updates.

    There must be a way to stop the automatic firmware / software updates.  I have not found.

    "If it ain't broke, don't fix it" particularly printers.

    People update the firmware / software (not only HP) & some things suddenly do not work.

    I don't update * nothing * until I know what it is.

    I just installed some new cartridges, not HP.  All of a sudden the printer is accessing internet & "Download".  She flashed quickly on the screen of the printer & I couldn't read what it says.

    At the same time, he said something like '... then web printing will be also activated. "

    I disabled specifically that, in the SAP when I 1st installation program for the printer.  Won't print web, it is useless.

    Now, because I have replace a few carts, it's going to turn it back on for me?  Talk about balls of brass.

    I canceled that download / stop the printer.  But of course, he had changed my settings & reactivated web printing.  (I disabled it again).

    The next power on, printer took some download.  He did not said worth what - has just shown, "Downloaded X of Y" & showed progress.  I immediately cancelled again.

    If there are no parameters to prevent no matter what auto FW / software updates, or if she simply ignores them, I'll have to bury the printer under the firewall.

    Thank you.

    Thanks RnR.

    Here is a method to use a router to block devices to access the internet, which should work for many users.

    I decided to use my router to block internet access to the printer.  This can quickly and easily be reversed or modified.  It has 2 basic steps:

    1 assign the printer a static IP address.

    2. use the settings on the router to deny access to the internet to the static address.

    I have a Cisco / Linksys router, but many brands & models have these basic features, which are accessed from EWS from the router (built-in web server), via a web browser.

    HP support has the allocation of static IP address for printer more detailed instructions.

    Here is the HP document a coating for my OJ Pro 8600 & some other models: http://support.hp.com/us-en/document/c03781399/

    It may be easier for most users to assign an HP printer a static address, using EWS of the printer rather than the screen of the printer.

    Note: as a general rule, when you use a router to assign a static API for devices that the router would otherwise be assigned automatically (via 'DHCP'), the selected static address is outside the current range of addresses, the router can be used to assign addresses to devices on.  Many routers, that the current range of addresses, it can choose to assign DHCP addresses is visible in certain section / tab of the EWS router.

    In my Cisco the current DHCP range appears under installation - basic setup - DHCP section:

    "IP range: 192.168.2.60 to 192.168.2.109.

    So I chose an address static printer off this (192.168.2.XXX).

    You should write down & save the selected API, in the case where there is no problem getting later printer (shouldn't be, but...).

    Assign the printer a static API did not affect access to its built-in Web server (for me).

    Once the static method API is assigned & recognized (by the router), use the settings of the router to block this address from internet access.  In my Cisco, it's under "Access Restrictions."  (You may need to turn the printer on / off; possibly reboot some computers, for the new static to be recognized address.)  Here's how I did in the Cisco:

    Log on to the router EWS (login by default & password is admin/admin.  You must always change router PASSWORD values by default, for security reasons - then your neighbor or your child can't hack your router remotely).

    Go to the tab "Access Restrictions" or similar.
    Click on "Edit PC" and put in the "MAC address" of the printer. (found in the network printer config / settings).

    Save the MAC address settings.

    Back on the homepage Internet access router, give this internet access policy (rule) a name.

    Then click on "Access."
    Check "Everyday" and "24 hours" for time, to block the IPa at all times.
    Save the settings.

    Now, the router will not allow this address to access the internet - for the specified hours, but the device (printer) can continue to communicate on the local network - all the time.

    The same can be done for specific computers.  You want to block computers in kids' internet access on certain days / hours.

  • Digital button & code that must run outside the switch of the event

    I have an interesting situation.  I have a command button which I activated the control via the mouse wheel of the user (thanks to great examples of code herein for one!). To do this I like, I had to put the processing part of the code outside the set event button, such that the value of the output of the control would be updated immediately.

    The only problem with this methodology which is then when the user closes the Panel and the button control is a final reminder, this block of code is executed one last time, which translates into a non fatal error "invalid control ID '.  The solution here is relevant, but is not ideal as shown above.

    My solution feels like a hack, but tell me what you think - trap on EVENT_DISCARD and back at the beginning.  Seems to work, just feels like a patch.  Here is the code:

    int CVICALLBACK KnobCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
    {
        int prevValue = 0;
        int currValue;          // current value of knob control, range = 0-100
        double currMotor = 0;
        double currMeter = 0;
        double idealMotor = 0;
        double currVoltage;
        int max, min, inc;
    
        // find the range values set in the UIR control:
        GetCtrlAttribute(panel, control, ATTR_MIN_VALUE, &min);
        GetCtrlAttribute(panel, control, ATTR_MAX_VALUE, &max);
        GetCtrlAttribute(panel, control, ATTR_INCR_VALUE, &inc);
    
        // load the current control changed value:
        GetCtrlVal(panel, control, &currValue);
    
        switch (event)
        {
            case EVENT_COMMIT:  // any control commit:
                break;
    
            case EVENT_MOUSE_WHEEL_SCROLL:
    
                switch (eventData1)
                {
                    case MOUSE_WHEEL_SCROLL_UP:
                        if (currValue < max)
                            currValue += inc;  // increment 1 step at a time, not eventData2 number of steps (Windows scroll wheel number)
                        else
                        {
                            currValue = max;    // hold at max
                            return 1;   // Swallow event to prevent from updating UIR
                        }
                        break;
    
                    case MOUSE_WHEEL_SCROLL_DOWN:
                        if (currValue > min)
                            currValue -= inc;  // decrement 1 step at a time, not eventData2 number of steps (Windows scroll wheel number)
                        else
                        {
                            currValue = min;    // hold at min
                            return 1;   // Swallow event to prevent from updating UIR
                        }
                        break;
    
                    case MOUSE_WHEEL_PAGE_UP:
                        if (currValue < max)
                            currValue += (inc * 5);  // eventData2 = 0 when PAGE up/down
                        else
                        {
                            currValue = max;    // hold at max
                            return 1;   // Swallow event to prevent from updating UIR
                        }
                        break;
    
                    case MOUSE_WHEEL_PAGE_DOWN:
                        if (currValue > min)
                            currValue -= (inc * 5);  // eventData2 = 0 when PAGE up/down
                        else
                        {
                            currValue = min;    // hold at min
                            return 1;   // Swallow event to prevent from updating UIR
                        }
                        break;
                }
                SetCtrlVal(panel, control, currValue);  // update control with processed value
                break;
    
            case EVENT_VAL_CHANGED:
                if ((currValue < prevValue) && (currValue > min))         // decrementing above floor
                {
                    currValue -= inc;
                }
                else if ((currValue > prevValue) && (currValue < max))        // incrementing below ceiling
                {
                    currValue += inc;
                }
                else if (currValue = max) // TODO: this condition doesn't work as expected; control doesn't trap for wrap-around from max to min, vice versa
                {
                    currValue = max;    // hold at max
                    return 1;   // Swallow event to prevent from updating UIR
                }
                else if (currValue = min) // TODO: this condition doesn't work as expected; control doesn't trap for wrap-around from max to min, vice versa
                {
                    currValue = min;    // hold at min
                    return 1;   // Swallow event to prevent from updating UIR
                }
                SetCtrlVal(panel, control, currValue);  // update control with processed value
                prevValue = currValue;  // update state variable
                break;
    
            case EVENT_DISCARD:
                return 0;   // TODO: bug fix for quitting cleanly, so that the code outside of the event switch doesn't execute one last time when the panel is quit.
                break;
    
        }   // end switch
    
        currVoltage =  (currValue * MOTOR_VOLT_STEP) + MOTOR_VOLT_MIN;
        currMotor = LabJackTimer(LABJACK_TIMER0);
        idealMotor = MOTOR_SLOPE * currVoltage;
    
        if (abs((int)(currMotor - idealMotor)) < MOTOR_TOL)
        {
            SetCtrlVal(panel, MAINPANEL_TEXTMSG6, "GOOD");
            SetCtrlAttribute(panel, MAINPANEL_TEXTMSG6, ATTR_TEXT_BGCOLOR, VAL_GREEN);
        }
        else
        {
            SetCtrlVal(panel,MAINPANEL_TEXTMSG6,"FAIL");
            SetCtrlAttribute(panel, MAINPANEL_TEXTMSG6, ATTR_TEXT_BGCOLOR, VAL_RED);
        }
        return 0;
    }
    

    I suggest to put the code SetCtrlVal fragment in a separate function and call this function for the correct event only; at present, it is called for any event, including the event throwing...

    In addition, there is no need to recall the values min/max/inc of your control each time, once the start programme should be enough

  • problem with the yellow triangle without preventing Internet access

    problem with the yellow triangle without preventing Internet access.in across the network!
    all PC go to the internet through TMG and some computers work very well and most of the computers triangle shows yellow and always go online, but the connection it needs to slow down, I do everything from restarting all switches and install new TMG and always exist and place on another line to outside the firewall problem disappear?
    What can I do :(

    Hello
    I advise you to follow the link below for Tech Net where your social networking question will be answered by IT pros.
    You can post/search here
    hope this helps,
    B Eddie

Maybe you are looking for

  • Mail signature does not stick!

    HI - no matter how many times I redo my Mail (on my Macbook Pro in early 2011) signature, my signature keeps back to an old signature (this not happen whenever I have emailed, but periodically, and then when he does, I can't go back to the new signat

  • Avast security not recognized online

    I'm working on this problem with Avast. Yesterday Avast has updated me to their latest version which, according to Avast, is recognized by the new policy of signing of the add-on from Mozilla. This module has been updated on 20 may 2015 according to

  • Win 8 again to choose a browser, even after I put the default value, I have a screenshot

    On opening of browser, I wonder to set the default browser. After I do I get the message send me options I guess come from Msoft: continue using FFox, choose IExp, choose the program from the store.I have a page, if you need it. Keep up the good work

  • Dual-boot Windows and Linux, but Linux has calendar, TB 31.0

    I'm using Linux Mint and Windows 7 dual-boot. I have TB 31.0 installed on each operating system. TB Linux has a capacity of calendar; in Windows, there is nothing (by nothing, I mean no calendars - I can't see their properties, for example, access so

  • Application of system basis during the Win7 update driver

    In update Vista Win7 and suite Assistant update Toshiba all seem to go very well and then just before you start the installation of Win7 it ask the driver base system.I don't know where it is or how to get it, resulting in my being stuck between the