Lock screen panning in the webOS browser on the TouchPad - css

How can I prevent a webpage from pulling to the left or right when swiping left or right in the webOS browser on the TouchPad?
Example: If you launch google.com in the browser of a TouchPad and then swipe left or right, you will notice that the page pulls to the left or right and exposes a grey background. However, if you go to maps.google.com and swipe left or right, the map pans and the page is locked in place. This is what I want to do. I do not want the page to pull beyond the edge of the browser, exposing the grey background.
I have created a carousel that uses a left and right swipe to navigate. It works perfectly in Safari on my laptop, but when I run it in the webOS browser it does not move and instead the entire page moves. How do I stop the page from moving and allow the carousel to receive my drag events?

If you don't want the screen to be scrollable and disable the bounces (that's what it's called) you should try:
document.ontouchmove = function(event){
event.preventDefault();
}

Related

How to allow a program to be functional if the mouse is held down even while not clicking on the program itself

(On mozilla firefox), if you click on the scroll bar on the right of the screen and hold it down, when you move up and down whilst holding the mouse down, it doesn't matter whether your mouse is on the program itself or not. You can click and hold on it and move your mouse to another display entirely and the program will still scroll up and down a webpage.
I am trying to do the same thing in SDL2 with a program, but when I made a scroll bar, as soon as I mouse off the application it stops and freezes in the Y location that it was before I moused off the display.

UWP, WinJS project, scrollview works for local machine but not on XBOX

I have a scrollable text div in UWP app, when run on local machine, it scrolls fine but when deplyed to xbox, the scrollbar disappears and div becomes unscrollable. I've already set overflow-y: scroll. Any other setup I need to do to make it work with gamepad?
For both XAML and hosted web apps running on Xbox One, mouse mode is turned on by default for the entire app. When under mouse mode, left stick is for free mode, right stick is for scrolling as the following picture shows.
(source: s-msft.com)
So you can scrolling by right stick or move the pointer cursor to the scroll bar and press A button to let the scroll bar work. The left stick should not allow you to scroll until you disable the mouse mode , for how to disable the mouse mode please reference How to disable mouse mode.
<script src="directionalnavigation-1.0.0.0.js"></script>
navigator.gamepadInputEmulation = "gamepad";
More details please reference Mouse mode section of the Designing for Xbox and TV article.

Embedded video on fullscreen is not on top of the site

Okay, this is a strange one. When the embedded video is clicked (on Chrome) to be seen on fullscreen, it's moved on the right because of the sidebar. On Firefox, it's as it should -the video is correctly stretched over the whole site. However, there is something that doesn't allow Chrome to do that.
Okay, I managed to find that this is connected with the animation-fill-mode. And I'm afraid that this is duplicate of HTML5 video won't maximize beyond container dimensions in native full screen mode

Flex Popup border fragments staying on screen

I have a Flex 4.6 app in which a popup with a white border comes up when the user mouses over an icon. When the user rolls off the icon or popup, the popup goes away (custom tooltip). The problem is, sometimes when the popup goes away, some points of the border stay on the screen on either side of the icon (almost like they stained the display). Has anyone ever seen this? Any suggestions on how to fix it?
Thanks

Embedded google map on mobile devices, annoying button changing map size

I have trouble making an embedded google map work properly on mobile devices. It is within a div box and set to 100% height/width and works as inteded when not on mobile phones. On phones it adds a big square-shaped button with an arrow in it in the bottom right corner which consequently shrinks the map size in the div to about half. When I click the mysterious button, nothing happens. So, an annoying button with no function. When I touch the map, the button disappears and the div is filled though. Anyway to get rid of that button?

Resources