mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-26 16:41:58 +00:00
commit
edd4e16bc2
@ -83,6 +83,12 @@ export default struct AppBubble {
|
||||
.borderRadius(this.isSelect ? StyleConstants.DEFAULT_15 : StyleConstants.DEFAULT_0)
|
||||
.padding(this.isSelect ? { left: StyleConstants.DEFAULT_20,
|
||||
right: StyleConstants.DEFAULT_20, top: this.mPaddingTop } : { top: this.mPaddingTop })
|
||||
.gesture(
|
||||
LongPressGesture({ repeat: false })
|
||||
.onAction((event: GestureEvent) => {
|
||||
AppStorage.SetOrCreate('isLongPress', true);
|
||||
})
|
||||
)
|
||||
}
|
||||
.parallelGesture(
|
||||
LongPressGesture({ repeat: false })
|
||||
|
@ -80,6 +80,7 @@ export default struct AppIcon {
|
||||
}
|
||||
.onHover((isHover: boolean) => {
|
||||
Log.showInfo(TAG, `onHover isHover ${isHover}`);
|
||||
this.scale = isHover ? 1.05 : 1
|
||||
})
|
||||
.onTouch((event: TouchEvent) => {
|
||||
if (event.type === TouchType.Down) {
|
||||
|
Loading…
Reference in New Issue
Block a user