makes emoji-picker position more dynamic
This commit is contained in:
parent
d2581bbf21
commit
bd0607b15b
|
@ -220,11 +220,11 @@ export default Ember.Component.extend({
|
|||
|
||||
_bindResizing() {
|
||||
this.$(window).on("resize", () => {
|
||||
Ember.run.debounce(this, this._positionPicker, 100);
|
||||
Ember.run.throttle(this, this._positionPicker, 50);
|
||||
});
|
||||
|
||||
Ember.$("#reply-control").on("div-resized", () => {
|
||||
Ember.run.debounce(this, this._positionPicker, 100);
|
||||
Ember.$("#reply-control").on("div-resizing", () => {
|
||||
Ember.run.throttle(this, this._positionPicker, 50);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ startDrag = function(e, opts) {
|
|||
};
|
||||
|
||||
performDrag = function(e, opts) {
|
||||
$(div).trigger("div-resizing");
|
||||
|
||||
var size, sizePx, thisMousePos;
|
||||
thisMousePos = mousePosition(e).y;
|
||||
size = originalDivHeight + (originalPos - thisMousePos);
|
||||
|
|
Loading…
Reference in New Issue