Skip to content

Resized event is called too many times #358

@Tropicalista

Description

@Tropicalista

Software version (please complete the following information):

  • Browser [ chrome]
  • Vue Version [ 2.5.7]
  • vue-grid-layout Version: [2.3.3]

Describe the bug
In documentation you said that resizedEvent is called 'Every time an item is finished being resized and changes size'.

However after some tests it seems that resized event is called too many times.

For example on layout creation and also when I start resizing and during resizing.

To Reproduce
Steps to reproduce the behavior:

  1. Create a simple layout
  2. Add a resized event and check the console

Expected behavior
ResizedEvent should be called when user stop to resize and lift the resize handler. Otherwise I don't have any clue when a resize action is ended.

A solution can be to have a resizeStop event.

Check this: https://codesandbox.io/s/vue-template-1vcqv?fontsize=14

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions