keyboard: Minor cleanup

Use the more concise operator shorthand.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1177
This commit is contained in:
Florian Müllner 2020-04-04 02:00:35 +02:00 committed by verdre
parent 153b7d525d
commit 2b70151794

View File

@ -722,7 +722,7 @@ var EmojiPager = GObject.registerClass({
_onPan(action) {
let [dist_, dx, dy_] = action.get_motion_delta(0);
this.delta = this.delta + dx;
this.delta += dx;
if (this._currentKey != null) {
this._currentKey.cancel();