Skip to content

Commit

Permalink
fix: images are no longer draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed May 5, 2023
1 parent bae5c92 commit f4ffba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/GridImage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{#if isVideo}
<video src="{imagePath}" muted loop autoplay={false} style="max-width: {widths[$gridType]}px; max-height: {heights[$gridType]}px; width: auto; height: auto;" on:mouseover={onEnter} on:mouseleave={onLeave} />
{:else}
<img src="{imagePath}" alt="{altText}" style="max-width: {widths[$gridType]}px; max-height: {heights[$gridType]}px; width: auto; height: auto;" />
<img src="{imagePath}" alt="{altText}" style="max-width: {widths[$gridType]}px; max-height: {heights[$gridType]}px; width: auto; height: auto;" draggable="false" />
{/if}
</Lazy>
{:else}
Expand Down

0 comments on commit f4ffba9

Please sign in to comment.