remove brackets

This commit is contained in:
Zoe Yang
2024-04-24 16:36:37 -07:00
parent 9e0abccf0c
commit e500e84bf3

View File

@@ -73,8 +73,8 @@ export function decode(tokens: Data.Token[]): InteractionEvent {
target: tokens[2] as number,
x: tokens[3] as number,
y: tokens[4] as number,
top: tokens.length > 5 ? (tokens[5] as string) : null,
bottom: tokens.length > 6 ? (tokens[6] as string) : null
top: tokens.length > 5 ? tokens[5] as string : null,
bottom: tokens.length > 6 ? tokens[6] as string : null
};
return { time, event, data: scrollData };
case Data.Event.Timeline: