Questions tagged [momentum]

73 questions
14
votes
3 answers

adding inertia to a UIPanGestureRecognizer

I am trying to move a sub view across the screen which works, but i also want to add inertia or momentum to the object. My UIPanGestureRecognizer code that i already have is below. Thanks in advance. UIPanGestureRecognizer *panGesture =…
MindBlower3
  • 495
  • 4
  • 16
11
votes
2 answers

How can I add momentum / inertia to a drag using CSS transform?

I am trying to add a momentum / inertia effect to a zoomed image drag (like in this example or just like iOs does it) and I'm having a tough time with it. I've been struggling with this for a while and found some helpful resources (like this one)…
BBog
  • 3,425
  • 5
  • 30
  • 63
10
votes
1 answer

Real-time Scrolling Events using "-webkit-overflow-scrolling: touch"

While using the CSS "-webkit-overflow-scrolling: touch" I'm not able to get real-time scrollLeft positions while on iOS. Here's a fiddle to demonstrate: http://jsfiddle.net/WaMUq/ While scrolling on a desktop, I'm getting realtime scrollLeft data…
matthoiland
  • 912
  • 11
  • 24
9
votes
3 answers

force-stop momentum scrolling on iphone/ipad in javascript

Is it possible to force-stop momentum scrolling on iphone/ipad in javascript? Extra: pretty sure this is pie in the sky, but for bonuspoints (honor and kudos), after dom-manipulation and a scrollTo applied, resume scroll with the same momentum…
Geert-Jan
  • 16,760
  • 10
  • 68
  • 121
8
votes
0 answers

Momentum / inertia scrolling on iOS Safari

I was not satisfied with the scrolling performance of my website in Safari. Instead of the smooth momentum scrolling that you're used to from native apps you get a clunky one that stops almost immediately as soon as you lift your finger. After…
Riesling
  • 5,693
  • 6
  • 27
  • 30
6
votes
1 answer

What's different about momentum gradient update in Tensorflow and Theano like this?

I'm trying to use TensorFlow with my deep learning project. Here I need implement my gradient update in this formula : I have also implement this part in Theano, and it came out the expected answer. But when I try to use TensorFlow's…
Peter Yang
  • 211
  • 2
  • 8
5
votes
0 answers

How to apply gradient descent with learning rate decay and update rule simultaneously?

I'm doing an experiment related to CNN. What I want to implement is the gradient descent with learning rate decay and the update rule from AlexNet. The algorithm that I want to implements is below (captured picture from alexnet paper): I think I…
LKM
  • 2,271
  • 7
  • 24
  • 51
5
votes
1 answer

Disable momentum scrolling on Chrome for Android

I'm looking for a way to disable the momentum scrolling on Chrome for Android device. I have a div with a fixed height and I want to be able to scroll the content of that div but without the smooth effect. On iOS it's easy, I just havn't add the…
tsbits
  • 63
  • 1
  • 6
4
votes
1 answer

Desktop momentum style scrolling and parallax

I see this style of momentum style scrolling on desktop a lot using transform: translate and I really like the smoothness of the effect. I have attempted this using requestAnimationFrame and css transitions for the easing effect. In webkit…
Steve K
  • 6,610
  • 2
  • 14
  • 28
4
votes
1 answer

How to implement momentum-based stochastic gradient descent (SGD)

I am using the python code network3.py (http://neuralnetworksanddeeplearning.com/chap6.html) for developing convolutional neural networks. Now I want to modify the code a little bit by adding a momentum learning rule as follows: velocity =…
jingweimo
  • 3,940
  • 3
  • 33
  • 59
4
votes
0 answers

-webkit-overflow-scrolling: touch -- heavy memory usage with iOS 7 iPAD

I am working on a web site which is very content heavy on some pages. When viewed on older versions of iPad (testing with iPad 3) which have lower memory, the Safari browser will run out of memory and crash when I navigate to these pages. Safari is…
Hampton Terry
  • 324
  • 1
  • 11
4
votes
2 answers

Trying to get my head around simulating momentum / inertia witih a UIRotationGestureController

Okay, so I'm trying to make a 'Wheel of Fortune' type of effect with a wheel shape in iOS, where I can grab and spin a wheel. I can currently drag and spin the wheel around to my heart's content, but upon releasing my finger, it stops dead. I need…
Luke
  • 8,709
  • 14
  • 74
  • 140
4
votes
3 answers

Overflow Scrolling on Android doesn't work?

yupp, I'm one of these guys who want to develop mobile apps with HTML5. On Android and iOS. Sounds crazy I know. Sadly I have a problem... I have a classic app with a footer and header and a content which should be scrollable. On iOS this works…
Pipo
  • 4,713
  • 7
  • 34
  • 43
3
votes
1 answer

Scroll events during momentum scrolling in Cordova for IOS

Variations of this question have been asked before (e.g. here and here), but with no conclusive answers yet. Is there a way to get scroll events to trigger (and use these listeners to update the DOM) during the momentum/inertia/deceleration part of…
tgordon18
  • 1,029
  • 11
  • 23
3
votes
1 answer

Background colour when scrolling above/below viewport?

In browsers on a Mac it's possible to scroll up past the top, and down below the bottom of body element. In each case the content snaps back, but for a moment (due to the momentum of your scrolling) you can see a bit of the body's background colour…
Dominic
  • 2,147
  • 1
  • 14
  • 15
1
2 3 4 5