flutter_flutter/sky/engine/core/events/GestureVelocity.cpp
Hans Muller d18c0f7758 Initial support for the fling gesture detector
Added FlingGestureRecognizer and exposed it in the GestureDetector class. FlingGestureRecognizer is based on the Android/Chromium VelocityTracker class which computes a velocity vector for for a list of X,Y,Time tuples.

The Scrollable classes now use the FlingGestureRecognizer. Dismissable and Drawer still need to be updated
2015-09-09 16:49:31 -07:00

15 lines
367 B
C++

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sky/engine/core/events/GestureVelocity.h"
namespace blink {
GestureVelocity::GestureVelocity(bool valid, float x, float y)
: m_is_valid(valid), m_x(x), m_y(y)
{
}
} // namespace blink