@xh/hoist 69.0.0-SNAPSHOT.1727949489248 → 69.0.0-SNAPSHOT.1728035585537

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,10 +2,13 @@
2
2
 
3
3
  ## 69.0.0-SNAPSHOT - unreleased
4
4
 
5
+ ### 🐞 Bug Fixes
6
+
7
+ * Added a workaround for a bug where Panel drag resizing was broken in Safari.
5
8
 
6
9
  ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW )
7
10
  * The `INITIALIZING` AppState has been replaced with more fine-grained states (see below). This
8
- is not expected to effect any applications.
11
+ is not expected to affect any applications.
9
12
 
10
13
  ### 🎁 New Features
11
14
 
@@ -254,7 +254,9 @@ export class DraggerModel extends HoistModel {
254
254
  }
255
255
 
256
256
  private isValidMouseEvent(e) {
257
- return e.buttons && e.buttons !== 0;
257
+ // Note: We fall back to deprecated 'which' to work around a Safari issue where `buttons`
258
+ // was not being set. We may be able to remove in the future.
259
+ return (e.buttons && e.buttons !== 0) || (e.which && e.which !== 0);
258
260
  }
259
261
 
260
262
  private isValidTouchEvent(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "69.0.0-SNAPSHOT.1727949489248",
3
+ "version": "69.0.0-SNAPSHOT.1728035585537",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",