Commit cf4dcbb
Fix incorrect display height for zooming gesture on secondary displays (#6652)
Do not use global system resources to get display height. Otherwise we
might get the height from the other display which would result in wrong
scaling.
GitOrigin-RevId: cc3fbf65b084963c40be920d7ef09f62b850e1351 parent b14e7b2 commit cf4dcbb
File tree
3 files changed
+7
-5
lines changed- app/src/main/java/com/mapbox/maps/testapp/examples/viewport
- plugin-gestures/src/main/java/com/mapbox/maps/plugin/gestures
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
845 | 844 | | |
846 | 845 | | |
847 | 846 | | |
848 | | - | |
| 847 | + | |
849 | 848 | | |
850 | 849 | | |
851 | 850 | | |
| |||
0 commit comments