-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New functions: seekAndCenter, toggleScroll. Implemented regions. Marks g... #182
Conversation
drount
commented
May 7, 2014
- New functions:
- seekAndCenter
- toggleScroll
- Removed handlerSize from parameters.
- Fire selection-updated with selection clear with null parameter.
- Mute while seeking paused to avoid noise.
- changed handler elements to handlers DOM tag with wavesurfer_handler class.
- Fixed bug where marks had handlers.
- Added wavesurfer parameter to drawer.
- Added regions with events (region-created, region-in, region-out).
- Added mark-updated, mark-removed events.
- Updated readme
cursor: 'col-resize', | ||
width: '12px', | ||
height: '15px', | ||
}); | ||
this.style(handler, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe join these two style calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed to set width first is order to later center the element using
left css property.
El 08/05/2014 08:35, "katspaugh" notifications@github.com escribió:
In src/drawer.canvas.js:
cursor: 'col-resize',
width: '12px',
height: '15px', }); this.style(handler, {
Maybe join these two style calls?
Reply to this email directly or view it on GitHubhttps://github.com//pull/182/files#r12416717
.
Thanks so much, this is great! While I've skimmed through, I will check it out tomorrow when back from holidays. |
Im traveling today too so I won't be able to make any correction :)
|
…s generate events. Fixed noise while seeking. Handlers are now handler DOM element.
I have updated the pull request removing the coupling between the drawer and the wavesurfer object. In addition add added a bit more documentation. |
Thanks, looks OK! Before I merge it, I would like to ask @pitrackster, if it's all right for his use-case to remove the |
I was actually checking the same. I tested it, and works for me. But better if the commiter checks it! |
Hi ! No problems for me ! still suitable for my use-cases ! |
@pitrackster I think there is a problem here: This parameter does not exist. In addition, after this pull request is merged, I think it is better to bind the event by default (given that each mark has its own configuration). Maybe refactor to bind by default: this.drawer.on('drag-mark', function (drag, mark) { and remove the other conditional bindings. |
To avoid checking the type on each drag event, maybe we should fire a |
Will add this to this pull request. |
@drount : you're right... a forgotten line... sorry ! should i correct it and create a pull request or you can include the correction in your pull request ? |
Just updated the pull request: There are no more type for marks. Marks are bound to the corresponding events. Thanks @katspaugh for the suggestion. Also added a missing default parameter, changed the function "moveMarker" to move "moveMark" for consistency with other functions. |
New functions: seekAndCenter, toggleScroll. Implemented regions. Marks g...
Thank you very much! |
When do you update the build? When upgrading version? |
Well, I used to run |
I wondered because I realized I did not executed make before the pull
|