Comments (4)
This is the code that is using that function:
function disable(e) {
if (is_mobile) {
return;
}
e = e.originalEvent;
if (e) {
// e.terget is body when click outside of context menu to close it
// even if you click on terminal
var node = document.elementFromPoint(e.clientX, e.clientY);
if (!$(node).closest('.terminal').length && self.enabled()) {
// we only need to disable when click outside of terminal
// click on other terminal is handled by focus event
self.disable();
}
}
}
self.oneTime(100, function() {
$(document).bind('click.terminal_' + self.id(), disable).
bind('contextmenu.terminal_' + self.id(), disable);
});
For some reason, this library trigger click event without clientX
and clientY
.
This is easy to fix, since real click event have isTrusted === true
.
from jquery.terminal.
Oh, didn't know you can install from GitHub. Good to know. I'm releasing 2.40.2
with the fix.
from jquery.terminal.
It should be fixed now, but you need to test locally with devel branch.
You can do this by cloing the repo, checkout devel branch and using npm link.
from jquery.terminal.
I managed to test it using npm install github:jcubic/jquery.terminal#devel
without cloning the entire repo.
It works! No more ERROR. Thank you!
from jquery.terminal.
Related Issues (20)
- See if you can change the keyboard on mobile
- Allow to change link target attribute HOT 1
- Create PoC for command hints HOT 1
- Error when running sequence of animations without newline
- Cursor animation is affected by update in interval HOT 1
- Don't update DOM when line didn't change HOT 1
- Prompt visible during multiline typing animation
- Greetings should allow instance of String object
- Issue with formatting when rendering images with & and &
- Formatting from prompt visible when exec with animation
- Text selection is not visible when echo raw
- Possible cancel of command promises HOT 3
- Create Terminal inspired Merch HOT 1
- Animate exec hash HOT 1
- Add reverse style to formatting
- Limit XML formatter targets
- skip animation doesn't work
- Infinite Loop when animating of empty line HOT 3
- Async push + pause
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.terminal.