mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 06:10:56 +08:00
rollback. Was not the correct fix need to think about this
This commit is contained in:
@ -465,9 +465,6 @@ export class View extends ViewCommon {
|
|||||||
public initNativeView(): void {
|
public initNativeView(): void {
|
||||||
super.initNativeView();
|
super.initNativeView();
|
||||||
this._isClickable = this.nativeViewProtected.isClickable();
|
this._isClickable = this.nativeViewProtected.isClickable();
|
||||||
if (this.nativeViewProtected.setClickable) {
|
|
||||||
this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.hasListeners(ViewCommon.layoutChangedEvent)) {
|
if (this.hasListeners(ViewCommon.layoutChangedEvent)) {
|
||||||
this.setOnLayoutChangeListener();
|
this.setOnLayoutChangeListener();
|
||||||
@ -495,6 +492,9 @@ export class View extends ViewCommon {
|
|||||||
this.nativeViewProtected.setOnTouchListener(this.touchListener);
|
this.nativeViewProtected.setOnTouchListener(this.touchListener);
|
||||||
|
|
||||||
this.touchListenerIsSet = true;
|
this.touchListenerIsSet = true;
|
||||||
|
if (this.nativeViewProtected.setClickable) {
|
||||||
|
this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private setOnLayoutChangeListener() {
|
private setOnLayoutChangeListener() {
|
||||||
|
Reference in New Issue
Block a user