Skip to content

Commit

Permalink
fix: synchronized scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Aug 28, 2024
1 parent f957568 commit 619fb51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default async (config = {}) => {
* Initialize WebSocket server
* Used to send messages between the server and the browser
*/
initWebSockets(wss, { scrollSync: shouldScroll, hmr: useHmr })
initWebSockets(wss, { shouldScroll, useHmr })

// Register routes
templatePaths = await getUpdatedRoutes(app, config)
Expand Down
4 changes: 2 additions & 2 deletions types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ export default interface Config {
hmr?: boolean;

/**
* Enable synchronized scrolling across devices.
* Enable synchronized scrolling across browser tabs.
*
* @default false
*/
syncScroll?: boolean;
scrollSync?: boolean;

/**
* Paths to watch for changes.
Expand Down

0 comments on commit 619fb51

Please sign in to comment.