From b1df189c7dcd09643c864ec49ae644d220cf40aa Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 4 May 2024 15:33:19 +0700 Subject: [PATCH] Support "styles" param in touch control --- src/modules/touch-controller.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/modules/touch-controller.ts b/src/modules/touch-controller.ts index 84a2c5f..8aca644 100644 --- a/src/modules/touch-controller.ts +++ b/src/modules/touch-controller.ts @@ -178,9 +178,7 @@ export class TouchController { layout: { id: 'System.Standard', displayName: 'System', - layoutFile: { - content: layout.content, - }, + layoutFile: layout, } }); }, delay); @@ -188,7 +186,7 @@ export class TouchController { static setup() { // Function for testing touch control - window.BX_EXPOSED.test_touch_control = (content: any) => { + window.BX_EXPOSED.test_touch_control = (layout: any) => { const { touch_layout_manager } = window.BX_EXPOSED; touch_layout_manager && touch_layout_manager.changeLayoutForScope({ @@ -198,9 +196,7 @@ export class TouchController { layout: { id: 'System.Standard', displayName: 'Custom', - layoutFile: { - content: content, - }, + layoutFile: layout, }, }); };