-
Notifications
You must be signed in to change notification settings - Fork 79
Conversation
@@ -28,6 +28,7 @@ public class UIWidgetsEditorPanel : EditorWindow, IUIWidgetsWindow { | |||
} | |||
|
|||
void Update() { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will delete it. This might come from auth reformat code.
@@ -503,24 +535,31 @@ public partial class UIWidgetsPanel : IPointerDownHandler, IPointerUpHandler, | |||
if (_inputMode != UIWidgetsInputMode.Mouse) { | |||
return; | |||
} | |||
|
|||
D.assert(eventData.pointerId < 0); | |||
_isEntered = false; | |||
_wrapper.OnPointerLeave(); | |||
} | |||
|
|||
public void OnPointerDown(PointerEventData eventData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can wrap onPointerDown, onPointerUp, onDrag into one single #if block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried and failed. Since we inherent certain interface, wee need to add these function. Or do we add #if for interface as well?
var position = _getPointerPosition(new Vector2(param.x, param.y)); | ||
var pointerId = -1 - param.pointerId; | ||
switch (param.phase) { | ||
case 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use "magic number", please define some enums and use them instead
Already included in #226 |
No description provided.