@jbrowse/app-core 2.11.1 → 2.11.2

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.
@@ -54,13 +54,11 @@ const Drawer = (0, mobx_react_1.observer)(function ({ children, session, }) {
54
54
  (0, react_1.useEffect)(() => {
55
55
  function handleSelectView(e) {
56
56
  var _a, _b, _c;
57
- if (e.target instanceof Element) {
58
- if ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) {
59
- // @ts-ignore
60
- const visibleWidgetId = (_c = (_b = session.visibleWidget) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.id;
61
- if (visibleWidgetId) {
62
- session.setFocusedViewId(visibleWidgetId);
63
- }
57
+ if (e.target instanceof Element && ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
58
+ // @ts-ignore
59
+ const visibleWidgetId = (_c = (_b = session.visibleWidget) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.id;
60
+ if (visibleWidgetId) {
61
+ session.setFocusedViewId(visibleWidgetId);
64
62
  }
65
63
  }
66
64
  }
@@ -54,10 +54,8 @@ const ViewContainer = (0, mobx_react_1.observer)(function ({ view, onClose, onMi
54
54
  (0, react_1.useEffect)(() => {
55
55
  function handleSelectView(e) {
56
56
  var _a;
57
- if (e.target instanceof Element) {
58
- if ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) {
59
- session.setFocusedViewId(view.id);
60
- }
57
+ if (e.target instanceof Element && ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
58
+ session.setFocusedViewId(view.id);
61
59
  }
62
60
  }
63
61
  document.addEventListener('mousedown', handleSelectView);
@@ -26,13 +26,11 @@ const Drawer = observer(function ({ children, session, }) {
26
26
  useEffect(() => {
27
27
  function handleSelectView(e) {
28
28
  var _a, _b, _c;
29
- if (e.target instanceof Element) {
30
- if ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) {
31
- // @ts-ignore
32
- const visibleWidgetId = (_c = (_b = session.visibleWidget) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.id;
33
- if (visibleWidgetId) {
34
- session.setFocusedViewId(visibleWidgetId);
35
- }
29
+ if (e.target instanceof Element && ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
30
+ // @ts-ignore
31
+ const visibleWidgetId = (_c = (_b = session.visibleWidget) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.id;
32
+ if (visibleWidgetId) {
33
+ session.setFocusedViewId(visibleWidgetId);
36
34
  }
37
35
  }
38
36
  }
@@ -26,10 +26,8 @@ const ViewContainer = observer(function ({ view, onClose, onMinimize, children,
26
26
  useEffect(() => {
27
27
  function handleSelectView(e) {
28
28
  var _a;
29
- if (e.target instanceof Element) {
30
- if ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) {
31
- session.setFocusedViewId(view.id);
32
- }
29
+ if (e.target instanceof Element && ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
30
+ session.setFocusedViewId(view.id);
33
31
  }
34
32
  }
35
33
  document.addEventListener('mousedown', handleSelectView);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/app-core",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "JBrowse 2 code shared between the 'full featured' apps e.g. jbrowse-web and jbrowse-desktop",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@babel/runtime": "^7.16.3",
45
- "@jbrowse/product-core": "^2.11.1",
45
+ "@jbrowse/product-core": "^2.11.2",
46
46
  "@mui/icons-material": "^5.0.0",
47
47
  "@mui/material": "^5.10.17",
48
48
  "copy-to-clipboard": "^3.3.1",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "11b28d66d782eb06f92ccb993108bb6c3c82819e"
63
+ "gitHead": "511048cb6965f0bf624c96de244e7fd47fce17d6"
64
64
  }