Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Siyao h/1.17/raw touches #201

Closed
wants to merge 5 commits into from
Closed

Siyao h/1.17/raw touches #201

wants to merge 5 commits into from

Conversation

SiyaoHuang
Copy link
Contributor

No description provided.

@@ -28,6 +28,7 @@ public class UIWidgetsEditorPanel : EditorWindow, IUIWidgetsWindow {
}

void Update() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line?

Copy link
Contributor Author

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) {
Copy link
Contributor

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?

Copy link
Contributor Author

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:
Copy link
Contributor

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

@zhuxingwei
Copy link
Contributor

Already included in #226

@zhuxingwei zhuxingwei closed this Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants