Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit cee64fb

Browse files
committed
enable slow shadow.
1 parent 2565655 commit cee64fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Runtime/gestures/converter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public static IEnumerable<PointerEvent> expand(IEnumerable<PointerData> data, fl
7575
switch (datum.change) {
7676
case PointerChange.down: {
7777
_PointerState state = _ensureStateForPointer(datum, position);
78-
D.assert(!state.down);
78+
if (state.down) {
79+
break;
80+
}
7981
if (state.lastPosition != position) {
8082
// a hover event to be here.
8183
state.lastPosition = position;

Runtime/ui/painting/shadow_utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Unity.UIWidgets.ui {
44
static class ShadowUtils {
5-
public static bool kUseFastShadow = true;
5+
public static bool kUseFastShadow = false;
66

77
public const float kAmbientHeightFactor = 1.0f / 128.0f;
88
public const float kAmbientGeomFactor = 64.0f;

0 commit comments

Comments
 (0)