Questions tagged [rubber-band]

58 questions
27
votes
8 answers

How to disable rubber band in iOS web apps?

This: $('body').on('touchmove', function(e) { e.preventDefault(); }); Works, but will disable scrolling throughout the whole page, which is far from ideal. This: $('*').on('touchstart', function(e){ var element = $(this).get(0); if (…
Mark
  • 12,916
  • 16
  • 70
  • 94
18
votes
2 answers

Set color for extra page parts visible during rubber band scroll

At least when you scroll over the edge on mac, you see the page moving down and leaving a plain color behind it. Iv'e figured out the you can change the color by setting the background color of the body. But is there any other approach to it?…
Uko
  • 12,209
  • 6
  • 53
  • 102
8
votes
1 answer

Disable rubber band in iOS full screen web app

I have a full screen web app running on iOS. When I swipe down, the screen scrolls with the rubber band effect (bumping). I want to lock the whole document but still allow scrolling divs with overflow-y: scroll where needed. I have experimented…
6
votes
4 answers

filled rubber band in Winforms Application

how can i draw a zero opacity rubber band over a windows form with 0.3 opacity? (The rubber band is made after a Microsoft example Update: I need that rubber band to work something like a mask. If you use Jing or any other screen shot tool, you…
andySF
  • 518
  • 6
  • 27
5
votes
1 answer

How to Rubber band in OpenGl

I'm trying to find a way to rubber band in OpenGL and Visual Studio C++. The problem I'm coming across is some Win 7 computers (i.e. My boss') won't allow me to read or draw to the front buffer thus killing drawing straight to it. glDrawBuffer(…
kaiken
  • 77
  • 6
5
votes
2 answers

Java FX rubberband resize bug

So, I am having a bug in my rubberband class and I can't seem to fix it. What I am basicly doing is: I have a borderpane which is the outside pane of the node I want to resize. I assign this borderpane a border with a width of 1 pixel (view css). I…
Displee
  • 588
  • 6
  • 17
5
votes
1 answer

How to write objective c wrapper for c++ methods?

I need to write a wrapper class in objective c for C++ class. I have referred the following Can't find standard C++ includes when using C++ class in Cocoa project and was able to get rid of the lexical or Preprocessor issue: 'vector' file not found…
Ankahathara
  • 2,490
  • 2
  • 15
  • 26
5
votes
1 answer

Disable Browser Rubber Band effect in Windows Phone 8 HTML5 App?

Does anyone know of a way to disable the "Rubber Band" effect in the IE10 browser on a Windows Phone 8 device? I tried a trick where I can create a high DIV and absolutely position it and then try and fix the position of the main content div, but…
4
votes
2 answers

HOW-TO Make computer sing

I'm trying to develop an online application where the user writes some text and the software sings it back to the user. I can currently generate the audio file with the words spoken by the computer using espeak, but I have no idea how to make it…
Ofir
  • 101
  • 2
  • 5
3
votes
2 answers

Ionic - black background on rubber band effect on iOS

I have disabled rubber band effect on the body, but it is still active on inner divs, and that is fine. However, when the portion above the scrolled element is shown, the background is black, like in the image: I have tried to assign explicit…
don
  • 2,942
  • 11
  • 36
  • 59
3
votes
0 answers

How can I make a scrollable div below a fixed header without confusing mobile Safari?

Fixed header at top. Scrollable div below. This question gets asked a lot: Header div stays at top, vertical scrolling div below with scrollbar only attached to that div fixed header div with scrollable div below How can I have a scrollable body…
Michael Swarts
  • 3,358
  • 6
  • 25
  • 40
3
votes
2 answers

unwanted flickering rubberband while dragging mouse on screen with XDrawRectangle in XLIB

I am on Ubuntu 14.04 platform, I am trying to make a rubberband for my screencasting project. I found rubberbanding examples which used xlib but I got flickering and partially missing rectangle while dragging mouse. I wonder if it's specific to my…
kenn
  • 319
  • 12
  • 22
3
votes
2 answers

qt rubberband selection with specific keyboard key

I have a QGraphicsView and a QGraphicsScene and I enabled this->setDragMode(QGraphicsView::RubberBandDrag); for a Rubberband selection. However, in my application it would make sense that you need to press the CTRL key and then move the mouse to…
Amazonasmann
  • 816
  • 1
  • 13
  • 26
3
votes
2 answers

Cairo + rubber band selection: gui very very slow

I'm working on an application written in Cairo + Gtk. Please note that, due to retrocompatibility issues, I am forced to use Python as programming language, PyGTK as wrapper, and GTK libraries, v.2.24. No chance to use C/C++ and/or GTK3! My app…
IT.
  • 311
  • 1
  • 5
  • 22
2
votes
3 answers

Removal of OpenGL rubber banding artefacts

I'm working with some OpenGL code for scientific visualization and I'm having issues getting its rubber banding working on newer hardware. The code is drawing a "Zoom Window" over an existing scene with one corner of the "Zoom Window" at the stored…
mcdave
  • 2,450
  • 15
  • 21
1
2 3 4