Questions tagged [bounce]

Do not use this tag as it is ambiguous.

May be associated with

  • email: "unknown sender" or "action not permitted". See
  • graphics: to ricochet an item in a display field
308 questions
7
votes
1 answer

Android: Detect when ScrollView has finished scrolling and bouncing back?

I have a ScrollView which has two hidden images, one at the top and one at the bottom. In between there is a bunch of visible content. What I need to do is make these images hidden by default but when you scroll all the way up or all the way down…
nebs
  • 4,939
  • 9
  • 41
  • 70
7
votes
3 answers

Tableview scrolling bounces back and hides the bottom cells

I have a view that is shown under a navigation controller. The view contains one subview at the top portion and a table view at the bottom. The table might have rows that extend beyond the visible height based on data. When I have rows that are…
Umark
  • 81
  • 1
  • 3
7
votes
1 answer

Limit bouncing for UIScrollview in iOS

I need to limit the bouncing in a UIScrollView so that it bounces as usual at the bottom but doesn't go further than X pixels at the top (the bottom doesn't matters). Is there any way to restrict the bouncing size? I have think that maybe a method…
HiddenDev
  • 183
  • 4
  • 9
6
votes
4 answers

Bouncing Ball logics

I have got a ball which bounces of walls. This bounce is simple, i just do this, ( code snippet ) if ( x - moveSpeed < 0 ) // Ball hit left wall xVel *= -1; However i also got a rectangle which the player moves. The bounce on this practically…
Lucas Arrefelt
  • 3,879
  • 5
  • 41
  • 71
6
votes
5 answers

Google Maps (JS-v3): How do I make my markers "fall from the sky"

Once I could have sworn I saw a demo of using Google Maps JavaScript API v3 to create an effect where it appeared your map marker icon fell from the sky and landed on the map. I've searched and searched, including looking at the API, and can't find…
teddyk
  • 61
  • 2
6
votes
1 answer

I can't find what's wrong with this circle bounce calculation in python

I have a a program where circles can bounce into one another. I followed the directions from here for rotating the vectors and scaling the magnitudes based on the collision angle: http://www.vobarian.com/collisions/2dcollisions2.pdf I wrote this…
Djones4822
  • 577
  • 3
  • 6
  • 23
6
votes
2 answers

Cancel UIScrollView bounce after dragging

I have a horizontal UIScrollView. I want to do a variation of the "pull-to-reset" animation, where I pull all the way past the right edge of the scroll view's content size, release my finger, and have the scroll view fly back to (0, 0) content…
1actobacillus
  • 408
  • 4
  • 12
6
votes
2 answers

When I try to scroll down on my UIScrollview, it bounces back to the same place it was

Okay, so i'm using a UIScrollView in my app. I have placed the scrollview in a viewcontroller in story board. I have several buttons there and a few labels. But when I try to scroll down to the buttons at the bottom, the scrollview just bounces back…
Henrik LP
  • 159
  • 9
5
votes
0 answers

ScrollView + LazyStacks stutter

I've had many similar issues to this when using ScrollViewand LazyVStack/ LazyHStack where the content of the lazy stack will stutter upon bouncing on the edge of the ScrollView. First I thought it might be due to using complex Views on the lazy…
5
votes
1 answer

How to disable vertical bounce in SwiftUI on a single ScrollView

I have a half modal view coming from the bottom of the screen with a scrollView, and when there's isn't enough content to scroll I want the drag gesture on the internal scrollView to apply to the modal and expand it or collapse it. I tried…
Ludyem
  • 1,709
  • 1
  • 18
  • 33
5
votes
2 answers

How to turn off UIWebView horizontal bounce

Simple problem, I have a webview that is supposed to hold just an image for the user to be able to zoom in and out. To keep my look clean, I want to completely disable bouncing on this view, but still allow scrolling. This solution does work for…
Dan F
  • 17,654
  • 5
  • 72
  • 110
5
votes
2 answers

UIViewPropertyAnimator's bounce effect

Let's say I have an animator that moves a view from (0, 0) to (-120, 0): let frameAnimator = UIViewPropertyAnimator(duration: duration, dampingRatio: 0.8) animator.addAnimations { switch state: case .normal: view.frame.origin.x = 0 …
5
votes
3 answers

background color in above (bounce part) of UIWebView

I think this shouldn't be a big problem, but I can't find the solution on my own. As always :p I have an UIWebView that has background color set to clearColor but when I try to scroll down too much I get the "bouncing area" above loaded HTML in…
luigi7up
  • 5,779
  • 2
  • 48
  • 58
5
votes
3 answers

How can I cancel a UIScrollView zoom bounce?

I'm using a zooming UIScrollView to show images in my iPad app. The zooming works great, with a pinch making an image smaller or bigger as appropriate. I also have bouncesZoom enabled so that it bounces back to the minimum or maximum zoom if the…
theory
  • 9,178
  • 10
  • 59
  • 129
5
votes
1 answer

UIScrollView - set negative contentOffset when bounce animation starts

I am using a UITableView to achieve a scale/unblur effect on my user's profile picture (like in the Spotify App) when I pull down the UITableView to a negative contentOffset.y. This all works fine... Now, when a user pulls down to a contentOffset.y…
user29533
  • 81
  • 1
  • 3
1
2
3
20 21