You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That makes it very inconvenient to override it with CSS. For instance, I wanted the handle to increase slightly on hover, but that's not directly possible as you're not only hardcoding fixed width in a style but also use it to calculate fixed pixel offsets (see above).
I propose to get rid of handleInfo completely, and use CSS for handle size, and replace hardcoded values inside calc with translate for centering:
This is what I actually ended up doing, passing :handle-info="{ size: 0, offset: 0, switch: true }" to get rid of the hardcoded offsets. My point is that's how the library should work in the first place.
The text was updated successfully, but these errors were encountered:
Currently, the handle size is configured via
style
attributes and manual pixel value calculations:vue3-drag-resize-rotate/src/components/vue-drag-resize-rotate/index.vue
Lines 351 to 354 in 5b17bb4
That makes it very inconvenient to override it with CSS. For instance, I wanted the handle to increase slightly on hover, but that's not directly possible as you're not only hardcoding fixed
width
in a style but also use it to calculate fixed pixel offsets (see above).I propose to get rid of
handleInfo
completely, and use CSS for handle size, and replace hardcoded values insidecalc
withtranslate
for centering:This is what I actually ended up doing, passing
:handle-info="{ size: 0, offset: 0, switch: true }"
to get rid of the hardcoded offsets. My point is that's how the library should work in the first place.The text was updated successfully, but these errors were encountered: