1 | /**
|
2 | * Copyright (c) 2013-present, Facebook, Inc.
|
3 | *
|
4 | * This source code is licensed under the MIT license found in the
|
5 | * LICENSE file in the root directory of this source tree.
|
6 | *
|
7 | */
|
8 |
|
9 | ;
|
10 |
|
11 | var ViewportMetrics = {
|
12 | currentScrollLeft: 0,
|
13 |
|
14 | currentScrollTop: 0,
|
15 |
|
16 | refreshScrollValues: function (scrollPosition) {
|
17 | ViewportMetrics.currentScrollLeft = scrollPosition.x;
|
18 | ViewportMetrics.currentScrollTop = scrollPosition.y;
|
19 | }
|
20 | };
|
21 |
|
22 | module.exports = ViewportMetrics; |
\ | No newline at end of file |