Skip to content

Commit 4bd3fa7

Browse files
committed
revert/cleanup
1 parent 256dc76 commit 4bd3fa7

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

app/features/position.js

+2-14
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ export function Position() {
2727
state.elements.forEach(el =>
2828
el.teardown())
2929

30-
state.elements = els.map(el => {
31-
draggable({el})
32-
return el
33-
})
30+
state.elements = els.map(el =>
31+
draggable({el}))
3432
}
3533

3634
const disconnect = () => {
@@ -164,16 +162,6 @@ export function draggable({el, surface = el, cursor = 'move', clickEvent}) {
164162
return el
165163
}
166164

167-
export function rotatable({el}) {
168-
const rotation = document.createElement('visbug-rotation')
169-
document.body.appendChild(rotation)
170-
rotation.position = {el}
171-
172-
el.teardown = () => rotation.remove()
173-
174-
return el
175-
}
176-
177165
export function positionElement(els, direction) {
178166
els
179167
.map(el => ensurePositionable(el))

0 commit comments

Comments
 (0)