Skip to content

Commit df74e4c

Browse files
committed
Allow laserpointer to move over applet
1 parent b261dab commit df74e4c

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ code {
181181
transition: left 0.05s ease, top 0.05s ease, width 0.05s ease, height 0.05s ease;
182182
}
183183

184+
.appletMain.appletMainLaserPointer{
185+
cursor: none;
186+
pointer-events: none;
187+
}
188+
184189
.appletIframe{
185190
background-color: #efefef;
186191
color: black;

src/ui/blackboard/blackboard.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ export class Blackboard extends Component {
10491049
<SVGSpotlight
10501050
ref={this.spotlight}
10511051
bbwidth={this.props.bbwidth}
1052-
zIndex={51 + zoffset}
1052+
zIndex={152 + zoffset}
10531053
></SVGSpotlight>
10541054
{this.props.experimental && this.state.appon && (
10551055
<JupyterHublet
@@ -1060,6 +1060,7 @@ export class Blackboard extends Component {
10601060
appids={this.state.appids}
10611061
ipynb={this.state.appipynb}
10621062
master={this.state.appletMaster}
1063+
laserPointerOn={this.state.cursor.mode === 'laserpointer'}
10631064
makeAppletMaster={this.props.makeAppletMaster}
10641065
screenShotSaver={this.props.screenShotSaver}
10651066
closeApp={this.props.closeApp}

src/ui/blackboard/jupyterhublet.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,14 +1035,13 @@ export class JupyterHublet extends Component {
10351035
(this.state.resize?.height ?? 0))
10361036
)
10371037
)
1038+
let className = 'appletMain'
1039+
if (this.state.movepos || this.state.resize) className += ' appletMainMove'
1040+
if (this.props.laserPointerOn) className += ' appletMainLaserPointer'
10381041
return (
10391042
<Fragment>
10401043
<div
1041-
className={
1042-
this.state.movepos || this.state.resize
1043-
? 'appletMain appletMainMove'
1044-
: 'appletMain'
1045-
}
1044+
className={className}
10461045
key='appletMain'
10471046
style={{
10481047
position: 'absolute',

0 commit comments

Comments
 (0)