浏览代码

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 2 年之前
父节点
当前提交
ce29cb0f10
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      keyboards/ploopyco/trackball/trackball.c

+ 5 - 0
keyboards/ploopyco/trackball/trackball.c

@@ -119,7 +119,12 @@ report_mouse_t pointing_device_task_kb(report_mouse_t mouse_report) {
     process_wheel();
 
     if (is_drag_scroll) {
+#ifdef PLOOPY_DRAGSCROLL_H_INVERT
+        // Invert horizontal scroll direction
+        mouse_report.h = -mouse_report.x;
+#else
         mouse_report.h = mouse_report.x;
+#endif
 #ifdef PLOOPY_DRAGSCROLL_INVERT
         // Invert vertical scroll direction
         mouse_report.v = -mouse_report.y;