mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-08-06 13:00:44 +08:00
feat: make the floating selectionTools follow the scrolling, while the result window remains fixed (#40)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export function getClientPosition(e) {
|
||||
const rect = e.getBoundingClientRect()
|
||||
return { x: rect.left, y: rect.top }
|
||||
}
|
||||
@@ -2,6 +2,7 @@ export * from './create-element-at-position'
|
||||
export * from './crop-text'
|
||||
export * from './ends-with-question-mark'
|
||||
export * from './fetch-sse'
|
||||
export * from './get-client-position'
|
||||
export * from './get-conversation-pairs'
|
||||
export * from './get-possible-element-by-query-selector'
|
||||
export * from './init-session'
|
||||
|
||||
Reference in New Issue
Block a user