Questions tagged [rubber-band]

58 questions
0
votes
2 answers

How to find the four coordinates and erase drawing of an rubberband rectangle in C#

Hi I have tried to draw an rubberband rectangle on a form using the mouse in C#. Problems 1) After the mouse release the rectangle disappears. [I want it to stay on the form] 2) I also need to find the coordinates of the four points of the drawn…
Haxed
  • 2,887
  • 14
  • 47
  • 73
0
votes
1 answer

How to create a static library using Makefile.ios in rubber band project

I need to create a static library from this repo https://bitbucket.org/breakfastquay/rubberband. It does include Makefile.ios but I do not know how to create a static library using this Makefile.ios Does anyone know how to create a static library…
Ankahathara
  • 2,866
  • 2
  • 20
  • 26
0
votes
0 answers

Rubber band sample for c# does not work

Implementing the example below in c# VS 2013 on windows 8 does not work the rubber rectangle is drawn at the incorrect position, has anyone else come across or provide an alternative that actually works? The code used is exactly the same as the…
John Fleming
  • 267
  • 1
  • 3
  • 12
0
votes
0 answers

window.innerWidth / Height and rubber banding

What I want: I am trying to figure out the effective viewport size of my webpage across devices - so the size available to content on the screen, without status bars and other stuff. What I tried: screen.availWidth/screen.availHeight - seems this…
BlackWolf
  • 5,239
  • 5
  • 33
  • 60
0
votes
2 answers

opengl rubberbanded box not showing

I'm trying to draw a selection box over an image drawn using glDrawPixels, but I cannot get it to show. In order to represent the coordinates of the box, I have 4 global integers that I update on mouse actions (the first 2 on click, the others when…
Orgrim
  • 357
  • 1
  • 5
  • 13
0
votes
1 answer

Box2d: Elastic rope takes time to get back to its initial position

I am creating a rubber band in Box2d. Here is my code. // init physics [self initPhysics]; // Create ball body CCSprite *ball = [CCSprite spriteWithFile:@"rubberband.png"]; ball.position = ccp(100, 100); ball.tag = 1; //…
Aqueel
  • 1,246
  • 3
  • 23
  • 46
0
votes
1 answer

How to simulate resistance within parent with the jQueryUI draggable?

Ive seen a simular thread but could'nt ask a followup question to it. I dont just want to simulate the rubberband effect but also make it possible to scroll all content even if the content is larger than its parent. I cant figure it out so i wanna…
0
votes
1 answer

How do I solve drawing XOR artefact problems in ScalaFX/JavaFX with BlendMode.Difference?

I'm porting some code from Java to Scala and having problems with drawing artefacts when attempting "rubber banding" - i.e. drawing a rectangle that moves with the mouse pointer. This was relatively simple to do in Java2D, but I'm having problems…
richj
  • 7,499
  • 3
  • 32
  • 50
0
votes
1 answer

Faceting with Rubberband

I am implementing ElasticSearch in a Ruby-on-Rails 2.3 application with the RubberBand gem. I am trying to return facets but I can't seem to find methods that I can use for this purpose. I've looked through the documentation and source. Does anyone…
Denis
  • 360
  • 1
  • 4
  • 15
0
votes
0 answers

Prevent rubber band scrolling without disabling scrolling on iOS

Current solutions I've seen so far to solve the rubber band scrolling problem on iOS devices disables scrolling entirely. Is there a concise solution to disable the effect without having to use markup?
Alexander Trauzzi
  • 7,277
  • 13
  • 68
  • 112
0
votes
1 answer

Draw rubber band line with an ontouchevent

Ok, I'm trying to make a program that utilizes a linedrawview. When the user starts a touch event(action DOWN), it gets the current x and y and stores them in variables. Then when the user drags their finger around, a line is drawn and animates in…
0
votes
1 answer

WPF implementing a rubberband type selection within a listbox

I'm trying to allow rubberband or lasso type selection of the items in the Listbox that the user wants selected. My Listbox is in a grid and to the grid I added a control that draws a rectangle over the area I want to select. I've tried hit…
yllams
  • 13
  • 6
0
votes
1 answer

"Rubber band" events on phonegap app

I'm working on an iOS app using Phonegap/ Cordova and jQuery Mobile. I want to be able to refresh the data when the user pulls the page down (rubber band effect). I tried using iScroll 4 but it made scrolling my page slow. I didn't find a phonegap…
perfect_element
  • 663
  • 9
  • 15
1 2 3
4