Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svelte movable drop dow menu #886

Open
tc-cole opened this issue Apr 9, 2023 · 1 comment
Open

svelte movable drop dow menu #886

tc-cole opened this issue Apr 9, 2023 · 1 comment
Labels
bug Something isn't working complete svelte
Milestone

Comments

@tc-cole
Copy link

tc-cole commented Apr 9, 2023

Environments

  • sveltekit
  • Framework version: 1.5
  • Moveable Component version: 0.37.0
  • Testable Address(optional):

Description

I am trying to have a movable dropdown menu in svelte but it is not working.

<script>
	import Moveable from "svelte-moveable";
	let moveable;
	let columns = [1,2,3,4]
	const keepRatio = true;
	const throttleScale = 0;
	const renderDirections = ['nw', 'n', 'ne', 'w', 'e', 'sw', 's', 'se'];
</script>



<div class="container" bind:this={moveable}>
	<select>
			{#each columns as column} {column} {/each}

	</select>
</div>

<Moveable
	target={moveable}
	hideDefaultLines={true}
	draggable={true}
	scalable={true}
	{keepRatio}
	{throttleScale}
	{renderDirections}
	on:drag={({ detail: e }) => {
		e.target.style.transform = e.transform;
	}}
	on:scale={({ detail: e }) => {
		e.target.style.transform = e.drag.transform;
	}}
/>

<style>
	.container {
		width: 200px;
		height: 200px;
	}
</style>
@daybrush daybrush added bug Something isn't working checking svelte and removed checking labels Apr 12, 2023
@daybrush daybrush added this to the 0.46.0 milestone Apr 12, 2023
daybrush added a commit that referenced this issue Apr 12, 2023
@daybrush
Copy link
Owner

daybrush commented Apr 13, 2023

@tc-cole

  • croact-moveable 0.2.0
  • @moveable/helper 0.1.2
  • lit-moveable 0.23.0
  • moveable 0.46.0
  • preact-moveable 0.48.0
  • react-moveable 0.49.0
  • svelte-moveable 0.38.0
  • vue-moveable 2.0.0-beta.64
  • vue3-moveable 0.21.0
  • ngx-moveable 0.43.0

moveable's new version is released. Try it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete svelte
Projects
None yet
Development

No branches or pull requests

2 participants