2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-04 08:47:37 +08:00

makes emoji-picker position more dynamic

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 22:14:41 +02:00
parent d2581bbf21
commit bd0607b15b
2 changed files with 5 additions and 3 deletions

View file

@ -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);